This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: builtin_return_addr vs frame_pointer_needed vs -O3
- From: Ian Dall <ian at beware dot dropbear dot id dot au>
- To: rth at redhat dot com
- Cc: ian at beware dot dropbear dot id dot au, schwab at suse dot de, dj at redhat dot com, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Jul 2002 20:41:58 +0930
- Subject: Re: builtin_return_addr vs frame_pointer_needed vs -O3
- References: <200101312226.RAA29943@greed.delorie.com><20010131170452.A13854@redhat.com><15641.30554.720720.529367@gargle.gargle.HOWL><20020626074538.C25683@redhat.com><jebs9y6pq3.fsf@sykes.suse.de><15642.18479.449591.859902@sibyl.beware.dropbear.id.au><20020628184211.A27214@redhat.com><15648.24023.589078.871036@sibyl.beware.dropbear.id.au><20020702115632.A2094@redhat.com>
Richard Henderson writes:
> Good enough. Just add some whitespace to pretty it up.
Here 'tis then. First a Changelog entry:
2002-07-03 Ian Dall <ian@sibyl.beware.dropbear.id.au>
* execute/20010122-1.x: Do not test with -fomit-frame-pointer
option since it is unlikely to work on most targets.
Now the patch:
*** testsuite/gcc.c-torture/execute/20010122-1.x 30 Apr 2002 23:39:33 -0000 1.1.1.1
--- testsuite/gcc.c-torture/execute/20010122-1.x 3 Jul 2002 11:06:53 -0000
***************
*** 5,8 ****
--- 5,17 ----
set torture_execute_xfail "mips*-sgi-irix6*"
}
+ # This test relies on __builtin_return_address(1) returning something
+ # useful. This is not guaranteed to be be so, especially
+ # when the -fomit-frame-pointer flag is used.
+ # Do not test with -fomit-frame-pointer option.
+ set torture_eval_before_compile {
+ if {[string match {*-fomit-frame-pointer*} "$option"]} {
+ continue}
+ }
+
return 0
Ian