From 046e5d036f2e3b78468d0611019e2f8fc93d1837 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 21 Jan 2005 19:05:52 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/20040206-1.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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" } */ -- 2.30.2