This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR bootstrap/10169: Prototype getopt in mips-tfile.c


On Sun, 18 May 2003, Roger Sayle wrote:

> The following is my proposed fix to GNATS PR bootstrap/10169.  The
> bootstrap on GCC on Tru64 v5.1B fails because getopt hasn't been
> declared/prototyped before its use in mips-tfile.c.  The problem
> doesn't occur on Tru64 v5.1.

The patch fixes the compilation of mips-tfile.c on Tru64 v5.1B, but
unfortunately it then fails on mips-tdump.c with the same error:

stage1/xgcc -Bstage1/ -B/usr/local/alphaev6-dec-osf5.1/bin/ -c   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Werror -fno-common
-DHAVE_CONFIG_H    -I. -I. -I../../gcc-cvs/gcc/gcc
-I../../gcc-cvs/gcc/gcc/. -I../../gcc-cvs/gcc/gcc/config
-I../../gcc-cvs/gcc/gcc/../include ../../gcc-cvs/gcc/gcc/mips-tdump.c -o
mips-tdump.o
../../gcc-cvs/gcc/gcc/mips-tdump.c: In function `main':
../../gcc-cvs/gcc/gcc/mips-tdump.c:1437: warning: implicit declaration of
function `getopt'
make[2]: *** [mips-tdump.o] Error 1
make[2]: Leaving directory `/tmp_mnt/scratch/jss/builds/gcc/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/tmp_mnt/scratch/jss/builds/gcc/gcc'
make: *** [bootstrap] Error 2

Thanks,

Jeremy

-- 
Jeremy Sanders <jss@ast.cam.ac.uk>   http://www-xray.ast.cam.ac.uk/~jss/
X-Ray Group, Institute of Astronomy, University of Cambridge, UK.
Public Key Server PGP Key ID: E1AAE053


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]