From: Ian Lance Taylor Date: Fri, 21 Jan 2005 19:05:52 +0000 (+0000) Subject: re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing retur... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=046e5d036f2e3b78468d0611019e2f8fc93d1837;p=gcc.git re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing return statement in a function) PR tree-optimization/13000 * gcc.dg/20040206-1.c: Change warning to point where function is being inlined. From-SVN: r94025 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e2e33ea6558..9c88afbf2ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-01-21 Ian Lance Taylor + + PR tree-optimization/13000 + * gcc.dg/20040206-1.c: Change warning to point where function is + being inlined. + 2005-01-21 Giovanni Bajo PR c++/19208 diff --git a/gcc/testsuite/gcc.dg/20040206-1.c b/gcc/testsuite/gcc.dg/20040206-1.c index e47b5981a45..ae5ef334c65 100644 --- a/gcc/testsuite/gcc.dg/20040206-1.c +++ b/gcc/testsuite/gcc.dg/20040206-1.c @@ -7,5 +7,5 @@ The warning about "no return statement in function returning non-void" is PR 13000. */ -static int foo (int a __attribute__((unused)) ) { } /* { dg-warning "return" "" { xfail *-*-* } } */ -int main (void) { return foo (0); } +static int foo (int a __attribute__((unused)) ) { } +int main (void) { return foo (0); } /* { dg-warning "control may reach end" } */