gcc.c-torture/execute/960218-1.c vs. NetBSD

Jeffrey A Law law@upchuck.cygnus.com
Mon May 31 20:56:00 GMT 1999


  In message < Pine.LNX.4.05-df.9905140033050.18641-100000@bartlet.df.lth.se >you
 write:
  > On Thu, 13 May 1999, Jeffrey A Law wrote:
  > >   In message <Pine.LNX.4.05-df.9905132336410.9281-100000@bartlet.df.lth.s
  > e>you 
  > > write:
  > >   > The test gcc.c-torture/execute/960218-1.c fails compilations for NetB
  > SD.
  > >   > The reason is a warning symbol in libc that gives the warning
  > >   > 
  > >   >    warning: reference to compatibility glob(); include <glob.h>
  > >   >             for correct reference
  > > Your C library is buggy.  We do not want to change the testsuite to work 
  > around
  > > buggy C libraries.
  > 
  > But it is the testing harness that fails. The compiling and linking does
  > the right thing, except that ld prints a warning, and the testing harness
  > interprets this warning as an error...
All the more reason *not* to change the test itself.

You might look into prune_system_crud or whatever it's called in dejagnu.

Or fix your library.  I bet if you do that right, then you won't get the
linker warning.  Think about it for a while.  How does the linker  know to
give you that warning about this magic symbol?...


jeff



More information about the Gcc-patches mailing list