diff options
author | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-05-16 01:28:08 +0000 |
---|---|---|
committer | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-05-16 01:28:08 +0000 |
commit | 0c0382234d5812474b070b6eccdfd99c98490548 (patch) | |
tree | 4a27f3fedb55f1ce6d9c2e86133d52dab52aa1d4 | |
parent | bafd0f8b7cec4dd0b74a4a8e5456b96744640679 (diff) | |
download | gperftools-0c0382234d5812474b070b6eccdfd99c98490548.tar.gz |
issue-385: as of gcc 4.6 we now need to enable frame pointers for i386 platforms since the default is to now omit frame pointers
git-svn-id: http://gperftools.googlecode.com/svn/trunk@150 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 93ed11e..5cf577e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,9 +30,13 @@ AM_CXXFLAGS += -Wall -Wwrite-strings -Woverloaded-virtual \ -fno-builtin-memalign -fno-builtin-posix_memalign \ -fno-builtin-valloc -fno-builtin-pvalloc # On i386, -mmmx is needed for the mmx-based instructions in -# atomicops-internal-x86.h. +# atomicops-internal-x86.h. Also as of gcc 4.6, -fomit-frame-pointer +# is the default. Since we must always have frame pointers for I386 +# in order to generate backtraces we now specify -fno-omit-frame-pointer +# by default. if I386 AM_CXXFLAGS += -mmmx +AM_CXXFLAGS += -fno-omit-frame-pointer endif I386 endif GCC if HAVE_W_NO_UNUSED_RESULT |