home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 1997 < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.2 KB  |  62 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!elsie.nci.nih.gov!ado
  3. From: ado@elsie.nci.nih.gov (Arthur David Olson)
  4. Subject: Gnu GCC 2 gstdarg.h and -pedantic don't mix
  5. Message-ID: <9207271429.AA21783@elsie.nci.nih.gov>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Gnus Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 27 Jul 1992 14:29:28 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 49
  12.  
  13. Index:    gcc-2.2.2/gstdarg.h
  14.  
  15. (We're running SunOS 4.1.1 on a Sun 4/75 and a Sun 3/280.)
  16.  
  17. Description:
  18.     gcc-2.2.2's gstdarg.h file and its -pedantic option don't mix
  19.     on a Sun3.
  20.  
  21. Repeat-By:
  22.     Note the lines highlighted with ">>>>" below.
  23.  
  24.     Script started on Mon Jul 27 10:27:18 1992
  25.     elsie$ cat try.c
  26.     #include "stdarg.h"
  27.  
  28.     void
  29.     whatever(char * name, ...)
  30.     {
  31.         va_list    args;
  32.         char *    s;
  33.  
  34.         va_start(args, name);
  35.         s = va_arg(args, char *);
  36.         va_end(args);
  37.     }
  38.     elsie$ /usr/local/bin/gcc -c -v try.c
  39.     Reading specs from /usr/local/lib/gcc-lib/sun3/2.2.2/specs
  40.     gcc version 2.2.2
  41.      /usr/local/lib/gcc-lib/sun3/2.2.2/cpp -lang-c -v -undef -D__GNUC__=2 -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__mc68000 -D__sun -D__unix -D__HAVE_68881__ -D__mc68020__ -Dmc68020 try.c /usr/tmp/cca21598.i
  42.     GNU CPP version 2.2.2 (68k, MIT syntax)
  43.      /usr/local/lib/gcc-lib/sun3/2.2.2/cc1 /usr/tmp/cca21598.i -quiet -dumpbase try.c -version -o /usr/tmp/cca21598.s
  44.     GNU C version 2.2.2 (68k, MIT syntax) compiled by GNU C version 2.2.2.
  45.      as -mc68020 -o try.o /usr/tmp/cca21598.s
  46.     elsie$ /usr/local/bin/gcc -c -v -pedantic try.c
  47.     Reading specs from /usr/local/lib/gcc-lib/sun3/2.2.2/specs
  48.     gcc version 2.2.2
  49.      /usr/local/lib/gcc-lib/sun3/2.2.2/cpp -lang-c -v -undef -D__GNUC__=2 -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__mc68000 -D__sun -D__unix -pedantic -D__HAVE_68881__ -D__mc68020__ -Dmc68020 try.c /usr/tmp/cca21607.i
  50.     GNU CPP version 2.2.2 (68k, MIT syntax)
  51.      /usr/local/lib/gcc-lib/sun3/2.2.2/cc1 /usr/tmp/cca21607.i -quiet -dumpbase try.c -pedantic -version -o /usr/tmp/cca21607.s
  52.     GNU C version 2.2.2 (68k, MIT syntax) compiled by GNU C version 2.2.2.
  53. >>>>    try.c: In function `whatever':
  54. >>>>    try.c:10: invalid lvalue in assignment
  55.     elsie$ exit
  56.  
  57.     script done on Mon Jul 27 10:27:55 1992
  58. -- 
  59.         Arthur David Olson    ado@elsie.nci.nih.gov
  60.         ADO and Elsie are Ampex and Borden trademarks
  61.  
  62.