home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!cis.ohio-state.edu!elsie.nci.nih.gov!ado
- From: ado@elsie.nci.nih.gov (Arthur David Olson)
- Subject: Gnu GCC 2 gstdarg.h and -pedantic don't mix
- Message-ID: <9207271429.AA21783@elsie.nci.nih.gov>
- Sender: gnulists@ai.mit.edu
- Organization: Gnus Not Usenet
- Distribution: gnu
- Date: Mon, 27 Jul 1992 14:29:28 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 49
-
- Index: gcc-2.2.2/gstdarg.h
-
- (We're running SunOS 4.1.1 on a Sun 4/75 and a Sun 3/280.)
-
- Description:
- gcc-2.2.2's gstdarg.h file and its -pedantic option don't mix
- on a Sun3.
-
- Repeat-By:
- Note the lines highlighted with ">>>>" below.
-
- Script started on Mon Jul 27 10:27:18 1992
- elsie$ cat try.c
- #include "stdarg.h"
-
- void
- whatever(char * name, ...)
- {
- va_list args;
- char * s;
-
- va_start(args, name);
- s = va_arg(args, char *);
- va_end(args);
- }
- elsie$ /usr/local/bin/gcc -c -v try.c
- Reading specs from /usr/local/lib/gcc-lib/sun3/2.2.2/specs
- gcc version 2.2.2
- /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
- GNU CPP version 2.2.2 (68k, MIT syntax)
- /usr/local/lib/gcc-lib/sun3/2.2.2/cc1 /usr/tmp/cca21598.i -quiet -dumpbase try.c -version -o /usr/tmp/cca21598.s
- GNU C version 2.2.2 (68k, MIT syntax) compiled by GNU C version 2.2.2.
- as -mc68020 -o try.o /usr/tmp/cca21598.s
- elsie$ /usr/local/bin/gcc -c -v -pedantic try.c
- Reading specs from /usr/local/lib/gcc-lib/sun3/2.2.2/specs
- gcc version 2.2.2
- /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
- GNU CPP version 2.2.2 (68k, MIT syntax)
- /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
- GNU C version 2.2.2 (68k, MIT syntax) compiled by GNU C version 2.2.2.
- >>>> try.c: In function `whatever':
- >>>> try.c:10: invalid lvalue in assignment
- elsie$ exit
-
- script done on Mon Jul 27 10:27:55 1992
- --
- Arthur David Olson ado@elsie.nci.nih.gov
- ADO and Elsie are Ampex and Borden trademarks
-
-