[tree-ssa] bug analysis for 20000603-1.c
Steven Bosscher
s.bosscher@student.tudelft.nl
Tue Oct 14 12:01:00 GMT 2003
Op di 14-10-2003, om 09:30 schreef Richard Henderson:
> On Mon, Oct 13, 2003 at 07:45:22PM -0600, law@redhat.com wrote:
> > >Well, mind sharing with us what other test cases have also already been
> > >analyzed, so there's not too much duplication of effort?
> > Well, I know what the tree-ssa.exp failures are since I cobbled together
> > most of those tests. I think everyone else just ignores them :-)
>
> I've been trying to work the last two weeks or so fixing or
> xfailing all of them. We really need to be able to tell at
> a glance whether a patch causes a regression.
Oh, I didn't know you were going through all of 'em. I started looking
at them yesterday because there are so many and they've been around for
so long :-) There really should be a plan for what to do about all
those builtins failures...
Any reason why noreturn-1.c and return-type-1.c have the wrong line for
a warning? All other tests for these warnings have them at the right
lines.
Gr.
Steven
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" } */
More information about the Gcc
mailing list