gem5 buildsys: compiler flag fixed due to newer gcc version

(Debian 7.1 comes with gcc 4.7.2) However, we are faking a gcc v4.4.5
but the gem5 build system only adds the '-Wno-unused-but-set-variable'
flag in case of a gcc >= v4.6. Now, this flag will always be appended.
(Older gcc versions should ignore the flag or emit a warning but will
continue to run.)

Change-Id: I7021e08019951375c7e8b56d0f875191f904971d
This commit is contained in:
Adrian Böckenkamp
2013-07-31 15:39:05 +02:00
parent aab117e5a8
commit 618fdb8e77

View File

@ -854,7 +854,8 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
swig_env.Append(CCFLAGS='-Wno-sign-compare')
swig_env.Append(CCFLAGS='-Wno-parentheses')
swig_env.Append(CCFLAGS='-Wno-unused-label')
if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
# DanceOS (We are faking gcc 4.4.5--see above--but the underlying gcc might be newer.)
# if compareVersions(env['GCC_VERSION'], '4.6'):
swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
if env['CLANG']:
swig_env.Append(CCFLAGS=['-Wno-unused-label'])