diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-08-12 16:39:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-08-12 09:39:37 -0700 |
commit | d79389af141d2943c237e5c8d6afeb4104cbf534 (patch) | |
tree | 6e130fcc873dab0799a165c43fa8b39c4b2eb9be /gcc/config.gcc | |
parent | a8c56818780786dd56e9656ddfa9806da4387e9c (diff) | |
download | gcc-d79389af141d2943c237e5c8d6afeb4104cbf534.zip gcc-d79389af141d2943c237e5c8d6afeb4104cbf534.tar.gz gcc-d79389af141d2943c237e5c8d6afeb4104cbf534.tar.bz2 |
Turn on -fomit-frame-pointer by default for 32bit Linux/x86.
2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
Uros Bizjak <ubizjak@gmail.com>
* config.gcc: Handle --enable-frame-pointer.
* configure.ac: Add --enable-frame-pointer.
* configure: Regenerated.
* config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
(override_options): If not configured with --enable-frame-pointer,
enable -fomit-frame-pointer (but not for TARGET_MACHO or when
optimizing for size), -fasynchronous-unwind-tables and
-maccumulate-outgoing-args by default.
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r163196
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 9170fc8..62dd9f65 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -406,6 +406,9 @@ i[34567]86-*-*) if test "x$enable_cld" = xyes; then tm_defines="${tm_defines} USE_IX86_CLD=1" fi + if test "x$enable_frame_pointer" = xyes; then + tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" + fi tm_file="vxworks-dummy.h ${tm_file}" ;; x86_64-*-*) @@ -413,6 +416,9 @@ x86_64-*-*) if test "x$enable_cld" = xyes; then tm_defines="${tm_defines} USE_IX86_CLD=1" fi + if test "x$enable_frame_pointer" = xyes; then + tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" + fi tm_file="vxworks-dummy.h ${tm_file}" ;; esac |