diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-18 13:49:23 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-18 13:49:23 -0400 |
commit | 316cdd0a190e58b9eb23de0aadb52438d5fe7cdc (patch) | |
tree | f1ce5ae2e24cc8409538b9b5c254776ba06b1dd8 | |
parent | 0534e355b77497a1272f6078edae1692d87a15cf (diff) | |
download | gem5-316cdd0a190e58b9eb23de0aadb52438d5fe7cdc.tar.xz |
dwarf debugging symbols make gdb much happier than stabs. Use them
and maximum debugging in for debug target.
No such thing as -O5 in GCC, so might as well just use -O3
--HG--
extra : convert_revision : f2e02c4f95c57eace010e75e2457193353088308
-rw-r--r-- | SConscript | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SConscript b/SConscript index 05515562f..378f4db1f 100644 --- a/SConscript +++ b/SConscript @@ -360,7 +360,7 @@ env.Append(CPPPATH='./libelf') # Debug binary debugEnv = env.Copy(OBJSUFFIX='.do') debugEnv.Label = 'debug' -debugEnv.Append(CCFLAGS=Split('-g -gstabs+ -O0')) +debugEnv.Append(CCFLAGS=Split('-g3 -gdwarf-2 -O0')) debugEnv.Append(CPPDEFINES='DEBUG') tlist = debugEnv.Program(target = 'm5.debug', source = make_objs(sources, debugEnv)) @@ -369,7 +369,7 @@ debugEnv.M5Binary = tlist[0] # Optimized binary optEnv = env.Copy() optEnv.Label = 'opt' -optEnv.Append(CCFLAGS=Split('-g -O5')) +optEnv.Append(CCFLAGS=Split('-g -O3')) tlist = optEnv.Program(target = 'm5.opt', source = make_objs(sources, optEnv)) optEnv.M5Binary = tlist[0] @@ -377,7 +377,7 @@ optEnv.M5Binary = tlist[0] # "Fast" binary fastEnv = env.Copy(OBJSUFFIX='.fo') fastEnv.Label = 'fast' -fastEnv.Append(CCFLAGS=Split('-O5')) +fastEnv.Append(CCFLAGS=Split('-O3')) fastEnv.Append(CPPDEFINES='NDEBUG') fastEnv.Program(target = 'm5.fast.unstripped', source = make_objs(sources, fastEnv)) @@ -389,7 +389,7 @@ fastEnv.M5Binary = tlist[0] # Profiled binary profEnv = env.Copy(OBJSUFFIX='.po') profEnv.Label = 'prof' -profEnv.Append(CCFLAGS=Split('-O5 -g -pg'), LINKFLAGS='-pg') +profEnv.Append(CCFLAGS=Split('-O3 -g -pg'), LINKFLAGS='-pg') tlist = profEnv.Program(target = 'm5.prof', source = make_objs(sources, profEnv)) profEnv.M5Binary = tlist[0] |