From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jaeger To: "Joseph S. Myers" Cc: Jan Hubicka , Subject: Re: spec2000 regression Date: Wed, 15 Aug 2001 11:04:00 -0000 Message-id: References: X-SW-Source: 2001-08/msg00936.html "Joseph S. Myers" writes: > On Wed, 15 Aug 2001, Jan Hubicka wrote: > >> Would be following testsuite OK? >> >> long long a1, *a=&a1; >> short b1, *b=&b1; >> main() >> { >> #ifdef __OPTIMIZE__ >> *a = 1; >> *b = 2; >> if (*a != 1) >> undefined (); >> #endif >> return 0; >> } > > Assuming that it does indeed pass with working compilers but fails with > mainline before the problem is fixed, that testcase should be OK. It works with 3.0 and fails with 3.1 CVS from yesterday: gromit:/tmp:[127]$ /opt/gcc-3.1-devel/bin/gcc -Wall t.c -O2 t.c:4: warning: return type defaults to `int' t.c: In function `main': t.c:9: warning: implicit declaration of function `undefined' /tmp/cc9lSIBE.o: In function `main': /tmp/cc9lSIBE.o(.text+0x41): undefined reference to `undefined' collect2: ld returned 1 exit status gromit:/tmp:[1]$ /opt/gcc-3.0/bin/gcc -Wall t.c -O2 t.c:4: warning: return type defaults to `int' t.c: In function `main': t.c:9: warning: implicit declaration of function `undefined' I didn't check any of the patches floating around. But shouldn't the testcase get fixed so that it issues no warnings? Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj