Warning in Ada front end breaks mainline bootstrap

Colin Douglas Howell chowell2@pacbell.net
Thu Jul 3 07:27:00 GMT 2003


I kept waiting for someone to fix this, but no one seems to have
noticed.

Mainline bootstrap is broken due to a warning in the Ada front end:

stage1/xgcc -Bstage1/ 
-B/home/howell/gcc/install-cvs/i686-pc-linux-gnu/bin/ -c
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes    -Werror -fno-common   -DHAVE_CONFIG_H    -I. 
-Iada -I../../gcc-cvs/gcc/gcc -I../../gcc-cvs/gcc/gcc/ada 
-I../../gcc-cvs/gcc/gcc/config -I../../gcc-cvs/gcc/gcc/../include 
../../gcc-cvs/gcc/gcc/ada/misc.c -o ada/misc.o
../../gcc-cvs/gcc/gcc/ada/misc.c: In function `gnat_handle_option':
../../gcc-cvs/gcc/gcc/ada/misc.c:272: warning: assignment discards 
qualifiers from pointer target type
../../gcc-cvs/gcc/gcc/ada/misc.c: In function `gnat_init_options':
../../gcc-cvs/gcc/gcc/ada/misc.c:289: warning: assignment discards 
qualifiers from pointer target type
make[2]: *** [ada/misc.o] Error 1
make[2]: Leaving directory `/home/howell/gcc/build-cvs/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/howell/gcc/build-cvs/gcc'
make: *** [bootstrap] Error 2

This is starting from a clean build with a fresh configure.

Here are the responsible lines, with their line numbers.  The guilty
statements are assigning const char pointer values to ordinary char
pointers.

      184 const char **save_argv;

      189 extern char **gnat_argv;

      272                 gnat_argv[gnat_argc] = save_argv[i];

      285 gnat_init_options (unsigned int argc, const char **argv)

      289   gnat_argv[0] = argv[0];     /* name of the command */

Colin



More information about the Gcc mailing list