------- Comment #1 from rguenther at suse dot de 2009-04-05 18:07 ------- Subject: Re: New: [4.5 Regression]: cris-elf gcc.dg/torture/builtin-math-3.c -O1 and -Os sincos one
On Sat, 4 Apr 2009, hp at gcc dot gnu dot org wrote: > With revision 145488 this test passed. > From revision 145495 and on, this test has failed as follows: > ... > Running /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/dg-torture.exp > ... > FAIL: gcc.dg/torture/builtin-math-3.c -O1 (test for excess errors) > FAIL: gcc.dg/torture/builtin-math-3.c -Os (test for excess errors) > ... > > With the message in gcc.log being: > builtin-math-3.c:(.text+0x88): undefined reference to `_link_error' > builtin-math-3.c:(.text+0xfe): undefined reference to `_link_error' > builtin-math-3.c:(.text+0x174): undefined reference to `_link_error' > builtin-math-3.c:(.text+0x1aa): undefined reference to `_link_error' > builtin-math-3.c:(.text+0x220): undefined reference to `_link_error' > /tmp/ccKBGOIU.o:builtin-math-3.c:(.text+0x296): more undefined references to > `_link_error' follow > > The lack of line-numbers is of course unhelpful, but with "-g" added, the link > error becomes, for both -O1 and -Os: > > builtin-math-3.o: In function `main': > /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/builtin-math-3.c:176: > undefined reference to `_link_error' > /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/builtin-math-3.c:176: > undefined reference to `_link_error' > /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/builtin-math-3.c:177: > undefined reference to `_link_error' > /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/builtin-math-3.c:177: > undefined reference to `_link_error' > > Author of patches in suspect revision range CC:ed. Can you 1) reduce the testcase and attach preprocessed source that works with a cross-compiler, 2) identify what goes wrong so we don't have to analyze cris assembler? Thanks, Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39643