This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] bug analysis for 20000603-1.c
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Oct 2003 20:16:57 +0200
- Subject: Re: [tree-ssa] bug analysis for 20000603-1.c
- References: <1066085644.16921.40.camel@steven.lr-s.tudelft.nl> <200310140145.h9E1jNU5009473@speedy.slc.redhat.com> <20031014073000.GB27340@redhat.com> <1066117362.3628.9.camel@steven.lr-s.tudelft.nl>
More in the category of bogus FAILs. Commited as obvious.
Gr.
Steven
* gcc.dg/noreturn-1.c: Adjust expected error lines.
* gcc.dg/return-type-1.c: Likewise.
> Index: noreturn-1.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/noreturn-1.c,v
> retrieving revision 1.7.28.3
> diff -c -3 -p -r1.7.28.3 noreturn-1.c
> *** noreturn-1.c 11 Mar 2003 00:15:13 -0000 1.7.28.3
> --- noreturn-1.c 13 Oct 2003 23:27:13 -0000
> *************** extern void exit (int);
> *** 7,14 ****
> extern void foo1(void) __attribute__ ((__noreturn__));
> void
> foo1(void)
> ! { /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
> ! }
>
> extern void foo2(void) __attribute__ ((__noreturn__));
> void
> --- 7,14 ----
> extern void foo1(void) __attribute__ ((__noreturn__));
> void
> foo1(void)
> ! {
> ! } /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
>
> extern void foo2(void) __attribute__ ((__noreturn__));
> void
> Index: return-type-1.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/return-type-1.c,v
> retrieving revision 1.3.26.3
> diff -c -3 -p -r1.3.26.3 return-type-1.c
> *** return-type-1.c 11 Mar 2003 00:15:13 -0000 1.3.26.3
> --- return-type-1.c 13 Oct 2003 23:27:13 -0000
> ***************
> *** 5,9 ****
> /* { dg-options "-O -Wreturn-type" } */
> int
> foo(void)
> ! { /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
> ! }
> --- 5,9 ----
> /* { dg-options "-O -Wreturn-type" } */
> int
> foo(void)
> ! {
> ! } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */