This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


The test gcc.c-torture/execute/960218-1.c fails compilations for NetBSD.
The reason is a warning symbol in libc that gives the warning

   warning: reference to compatibility glob(); include <glob.h>
            for correct reference

during linking. This is solved by renaming the variable in the test.

   /Krister


Thu May 13 21:33:21 1999  Krister Walfridsson  (cato@df.lth.se)

        * gcc.c-torture/execute/960218-1.c: Renamed a variable.




Index: 960218-1.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/gcc.c-torture/execute/960218-1.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 960218-1.c
*** 960218-1.c  1998/12/16 22:13:54     1.2
--- 960218-1.c  1999/05/13 21:33:21
***************
*** 1,8 ****
! int glob;
  
  g (x)
  {
!   glob = x;
    return 0;
  }
  
--- 1,8 ----
! int global;
  
  g (x)
  {
!   global = x;
    return 0;
  }
  
*************** f (x)
*** 16,22 ****
  main ()
  {
    f (3);
!   if (glob != -4)
      abort ();
    exit (0);
  }
--- 16,22 ----
  main ()
  {
    f (3);
!   if (global != -4)
      abort ();
    exit (0);
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]