64a65
> base/remote_gdb.cc
116a118
> mem/cache/prefetch/prefetcher.cc
119a122
> mem/cache/tags/cache_tags.cc
131d133
< python/swig/init.cc
134,135d135
< python/swig/event_wrap.cc
< python/swig/pyevent.cc
175d174
< base/remote_gdb.cc
314,332c313,316
< ccflags = {}
< if env['GCC']:
< if sys.platform == 'sunos5':
< ccflags['debug'] = '-gstabs+'
< else:
< ccflags['debug'] = '-ggdb3'
< ccflags['opt'] = '-g -O3'
< ccflags['fast'] = '-O3'
< ccflags['prof'] = '-O3 -g -pg'
< elif env['SUNCC']:
< ccflags['debug'] = '-g0'
< ccflags['opt'] = '-g -O'
< ccflags['fast'] = '-fast'
< ccflags['prof'] = '-fast -g -pg'
< elif env['ICC']:
< ccflags['debug'] = '-g -O0'
< ccflags['opt'] = '-g -O'
< ccflags['fast'] = '-fast'
< ccflags['prof'] = '-fast -g -pg'
---
> # Solaris seems to have some issue with DWARF2 debugging information, it's ok
> # with stabs though
> if sys.platform == 'sunos5':
> debug_flag = '-gstabs+'
334,335c318
< print 'Unknown compiler, please fix compiler options'
< Exit(1)
---
> debug_flag = '-ggdb3'
338c321
< CCFLAGS = Split(ccflags['debug']),
---
> CCFLAGS = Split('%s -O0' % debug_flag),
343c326
< CCFLAGS = Split(ccflags['opt']),
---
> CCFLAGS = Split('-g -O3'),
348c331
< CCFLAGS = Split(ccflags['fast']),
---
> CCFLAGS = Split('-O3'),
353c336
< CCFLAGS = Split(ccflags['prof']),
---
> CCFLAGS = Split('-O3 -g -pg'),