With "Sun Nov 13 12:09:09 UTC 2005 (revision 106861M)" (likely not important, a "make check-gcc 'RUNTESTFLAGS=dg.exp=attr-weakref-1.c'" shows this:
Running /home/hp/combined/combined/gcc/testsuite/gcc.dg/dg.exp ... FAIL: gcc.dg/attr-weakref-1.c (test for excess errors) WARNING: gcc.dg/attr-weakref-1.c compilation failed to produce executable with this in gcc.log: Executing on host: /home/hp/combined/native-regobj/gcc/xgcc -B/home/hp/combined/native-regobj/gcc/ -fno-show-column ./attr-weak\ ref-1a.c -c -o objfmtst.o objfmtst.c (timeout = 300) xgcc: ./attr-weakref-1a.c: No such file or directory^M compiler exited with status 1 output is: xgcc: ./attr-weakref-1a.c: No such file or directory^M Executing on host: /home/hp/combined/native-regobj/gcc/xgcc -B/home/hp/combined/native-regobj/gcc/ /home/hp/combined/combined/gcc\ /testsuite/gcc.dg/attr-weakref-1.c -O2 -fno-show-column -lm -o ./attr-weakref-1.exe (timeout = 300) /tmp/ccUlVxb5.o: In function `fv7':attr-weakref-1.c:(.text+0x1): undefined reference to `uv7'^M (more linker errors) collect2: ld returned 1 exit status^M FAIL: gcc.dg/attr-weakref-1.c (test for excess errors) You don't see this if the { dg-require-weak "" } is cached by an earlier test (no "earlier" such test even with dg.exp alone; with a whole run it seems the cached one is from gcc.c-torture/compile/20011119-1.c). -- Summary: dg-require compilation-test trigged on test with additional-sources barfs Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24841