🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Marty Leisner 27283 Fri, 20 Nov 1992 01:21
Bug?? In front of end of gcc 2.x
#1428
Author: Marty Leisner 27283
Date: Fri, 20 Nov 1992 01:21
47 lines
1983 bytes
I'm running on Sparc, SunOS 4.1.2

This is my program:

main()
{
        int i;

        switch(i) {
                default:
        }
}


gcc1.4.2 sez:
leisner@annapurna$ gcc142 switchbug.c -v -c
gcc version 1.42
 /usr/gnu/src/gcc-1.42/cpp -v -undef -D__GNUC__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ switchbug.c /usr/tmp/cca12363.cpp
GNU CPP version 1.42
 /usr/gnu/src/gcc-1.42/cc1 /usr/tmp/cca12363.cpp -quiet -dumpbase switchbug.c -version -o /usr/tmp/cca12363.s
GNU C version 1.42 (sparc) compiled by GNU C version 1.42.
default target switches: -mfpu -mepilogue
switchbug.c: In function main:
switchbug.c:7: parse error before `}'


gcc 2.2.2 sez:
leisner@annapurna$ gcc -v -c switchbug.c
Reading specs from /usr/gnu/lib/gcc-lib/sun4/2.2.2/specs
gcc version 2.2.2
 /usr/gnu/lib/gcc-lib/sun4/2.2.2/cpp -lang-c -v -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix switchbug.c /usr/tmp/cca12366.i
GNU CPP version 2.2.2 (sparc)
 /usr/gnu/lib/gcc-lib/sun4/2.2.2/cc1 /usr/tmp/cca12366.i -quiet -dumpbase switchbug.c -version -o /usr/tmp/cca12366.s
GNU C version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
 as -o switchbug.o /usr/tmp/cca12366.s


Since when is the above program valid?


Marty    leisner.henr801c@xerox.com 
 	 leisner@eso.mc.xerox.com 
          Member of the League for Programming Freedom 
 The Feynman Problem Solving Algorithm:
 1) Write down the problem
 2) Think very hard
 3) Write down the answer     -- Murray Gell-mann
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