🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Arthur David Olson Mon, 27 Jul 1992 14:29
Gnu GCC 2 gstdarg.h and -pedantic don't mix
#287
Author: Arthur David Olson
Date: Mon, 27 Jul 1992 14:29
48 lines
2356 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads