aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@c2micro.com>2005-01-21 19:05:52 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-01-21 19:05:52 +0000
commit046e5d036f2e3b78468d0611019e2f8fc93d1837 (patch)
treed3330148ea0c9dab068e83808fe47c73bdf54f23 /gcc
parent089efaa4a16ff50c6c5b37e9f7add71f20c18f1b (diff)
downloadgcc-046e5d036f2e3b78468d0611019e2f8fc93d1837.zip
gcc-046e5d036f2e3b78468d0611019e2f8fc93d1837.tar.gz
gcc-046e5d036f2e3b78468d0611019e2f8fc93d1837.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/20040206-1.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e2e33ea..9c88afb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-21 Ian Lance Taylor <ian@c2micro.com>
+
+ PR tree-optimization/13000
+ * gcc.dg/20040206-1.c: Change warning to point where function is
+ being inlined.
+
2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/19208
diff --git a/gcc/testsuite/gcc.dg/20040206-1.c b/gcc/testsuite/gcc.dg/20040206-1.c
index e47b598..ae5ef33 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" } */