Subject: gcc behavio[u]r
To: None <port-i386@NetBSD.ORG>
From: John Birrell <cimaxp1!jb@werple.net.au>
List: port-i386
Date: 02/11/1996 08:41:03
G'day,

Using gcc version 2.7.2 on NetBSD/i386 I get different warnings depending
on whether or not I use -fpic.

For example:

gcc -c -g -Wall -nostdinc -DNETBSDI386 -D_THREAD_SAFE -I/u/dev/incl -I/u/dev/usr/include /u/dev/lbr1/ll/ll_idel.c

compiles cleanly, but:

gcc -c -g -fpic -Wall -nostdinc -DNETBSDI386 -D_THREAD_SAFE -I/u/dev/incl -I/u/dev/usr/include /u/dev/lbr1/ll/ll_idel.c

gives a warning:

/u/dev/usr/include/stdio.h:359: warning: `__sputc' defined but not used

(the line number is offset from the NetBSD source by being passed through
our code management system  --- the line number is 331 w.r.t. NetBSD source).

I don't see any problems with the code generated, but our code management
system strictly implements our Quality System which says that code
must compile _without_ warnings before it can be released. So I need to
decide whether the warning is bogus (and can be fixed) or if I should
change back to the older version of gcc. Any opinions?

Regards,

-- 
John Birrell                                CIMlogic Pty Ltd
jb@cimlogic.com.au                          119 Cecil Street
Ph  +61  3 9690 6900                        South Melbourne Vic 3205
Fax +61  3 9690 6650                        Australia
Mob +61 18  353  137