Commit 4f698118 by Jan Hubicka Committed by Jan Hubicka

always_inline3.c: Update for pre-inline tail recursion elimination.

	* gcc.dg/always_inline3.c: Update for pre-inline tail recursion
	elimination.

From-SVN: r120777
parent ad703964
2007-01-14 Jan Hubicka <jh@suse.cz>
* gcc.dg/always_inline3.c: Update for pre-inline tail recursion
elimination.
2007-01-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30410
/* { dg-do compile } */
/* { dg-options "-Winline -O2" } */
void do_something_evil (void);
int do_something_evil (void);
inline __attribute__ ((always_inline)) void
q2(void)
{ /* { dg-error "recursive" "" } */
do_something_evil ();
q2(); /* { dg-error "called from here" "" } */
if (do_something_evil ())
return;
q2(); /* { dg-error "called from here" "" } */
q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion. */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment