diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-08 15:05:54 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-08 15:05:54 -0500 |
commit | 100f9bfb0b87cfd393226efe714eb9259b978aff (patch) | |
tree | ce4d0b512c1c8313cd759d79b2c0db35d46e393a /src/SConscript | |
parent | f7a35c33d70d99c1276a70c2ed1a86719e64973b (diff) | |
download | gem5-100f9bfb0b87cfd393226efe714eb9259b978aff.tar.xz |
DWARF2 symbol support seems to be broken on Solaris. Use stabs+
align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris
src/SConscript:
DWARF2 symbol support seems to be broken on Solaris. Use stabs+
src/base/statistics.hh:
align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris
--HG--
extra : convert_revision : bc875a4fdfb4553062d3278537bc32a5ab9b6cca
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript index d938d533f..8d2c8566b 100644 --- a/src/SConscript +++ b/src/SConscript @@ -399,8 +399,15 @@ def makeEnv(label, objsfx, strip = False, **kwargs): envList.append(newEnv) # Debug binary +# Solaris seems to have some issue with DWARF2 debugging information, it's ok +# with stabs though +if sys.platform == 'sunos5': + debug_flag = '-gstabs+' +else: + debug_flag = '-ggdb3' + makeEnv('debug', '.do', - CCFLAGS = Split('-g3 -gdwarf-2 -O0'), + CCFLAGS = Split('%s -O0' % debug_flag), CPPDEFINES = 'DEBUG') # Optimized binary |