[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] gcc and ansi

From: Dave Denholm
Subject: Re: [gnugo-devel] gcc and ansi
Date: 29 Apr 2003 11:54:10 +0100

Arend Bayer <address@hidden> writes:

> > You could try
> >
> >  gcc -pedantic -Wp,-nopendatic
> That gives cc1: unrecognized option `-nopedantic' here
> (gcc 3.2.3).

Eh ?  cc1 should never have seen the -nopedantic : should only have gone to cpp

> >  --verbose shows both -pedantic and -nopedantic being passed.
> >

$ touch fred.c
$ gcc --verbose -pedantic -Wp,-nopedantic fred.c
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/cpp -lang-c -v -D__GNUC__=2 
-D__GNUC_MINOR__=95 -Dunix -D__svr4__ -D__SVR4 -Dsun -D__unix__ -D__svr4__ 
-D__SVR4 -D__sun__ -D__unix -D__sun -Asystem(svr4) -pedantic -Acpu(i386) 
-Amachine(i386) -Di386 -D__i386 -D__i386__ -nopedantic fred.c /tmp/ccUcaIfo.i
GNU CPP version 2.95.2 19991024 (release) (i386 System V Release 4)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/cc1 /tmp/ccUcaIfo.i -quiet 
-dumpbase fred.c -pedantic -version -o /tmp/ccIr5qhE.s
GNU C version 2.95.2 19991024 (release) (i386-pc-solaris2.8) compiled by GNU C 
version 2.95.2 19991024 (release).
fred.c:1: warning: ANSI C forbids an empty source file
 /usr/local/i386-pc-solaris2.8/bin/as -V -Qy -s -o /tmp/ccYkekCT.o 
GNU assembler version 2.10.1 (i386-pc-solaris2.8) using BFD version 2.10.1
 /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/collect2 -V -Y 
P,/usr/ccs/lib:/usr/lib -Qy 
-L/usr/local/i386-pc-solaris2.8/lib -L/usr/ccs/bin -L/usr/ccs/lib 
-L/usr/local/lib /tmp/ccYkekCT.o -lgcc -lc -lgcc 
/usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/crt1.o: In function `_start':
/usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/crt1.o(.text+0x53): undefined 
reference to `main'
GNU ld version 2.10.1 (with BFD 2.10.1)
  Supported emulations:
collect2: ld returned 1 exit status

Dave Denholm              <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]