summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-13 17:06:42 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-13 17:06:42 +0000
commitc59b06cc0ec7573c417a7a6e39df1ca9591156e6 (patch)
tree0fd79808a5c0a607152a42ba6de3e0608db97b04 /gcc/configure.ac
parentbfb365086b360b1fc02987b51a61235280aa4c6b (diff)
downloadgcc-c59b06cc0ec7573c417a7a6e39df1ca9591156e6.tar.gz
Enable -fomit-frame-pointer on darwin which support dwarf2.
2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu> * gcc/configure.ac: Enable -fomit-frame-pointer on darwin which support dwarf2. * config/i386/i386.c (override_options): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163227 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index dd0b1984c9f..1fcb87a2e2d 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1584,8 +1584,9 @@ AC_ARG_ENABLE(frame-pointer,
[ --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86], [],
[
case $target_os in
-linux*)
- # Enable -fomit-frame-pointer by default for Linux.
+linux* | darwin[[8912]]*)
+ # Enable -fomit-frame-pointer by default for Linux and Darwin with
+ # DWARF2.
enable_frame_pointer=no
;;
*)