elimination.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120777
138bc75d-0d04-0410-961f-
82ee72b054a4
+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. */
}