This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] bug analysis for 20000603-1.c


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" } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]