Review Board 2.0.15


scons: Enforce gcc >= 4.4 or clang >= 2.9 and c++0x support

Review Request #1556 - Created Dec. 6, 2012 and submitted - Latest diff uploaded

Information
Ali Saidi
gem5
default
Reviewers
Default
Changeset 9389:4233bdc81103
---------------------------
scons: Enforce gcc >= 4.4 or clang >= 2.9 and c++0x support

This patch checks that the compiler in use is either gcc >= 4.4 or
clang >= 2.9. and enables building with --std=c++0x in all cases. As a
consequence, we can tidy up the hashmap and always have static_assert
available. If anyone wants to use alternative compilers, icc for
example supports c++0x to a similar level and could be added if
needed.

This patch opens up for a more elaborate use of c++0x features that
are present in gcc 4.4 and clang 2.9, e.g. auto typed variables,
variadic templates, rvalues and move semantics, and strongly typed
enums. There will be no going back on this one...