Bootstrap failure on powerpc64
Josef Zlomek
zlomj9am@artax.karlin.mff.cuni.cz
Sat Feb 7 15:37:00 GMT 2004
With current mainline I get:
stage1/xgcc -Bstage1/ -B/usr/local/powerpc64-unknown-linux-gnu/bin/ -c -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common
-DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
../../gcc/pretty-print.c -o pretty-print.o
../../gcc/pretty-print.c: In function `pp_base_format_text':
../../gcc/pretty-print.c:295: warning: 's' might be used uninitialized in this
function
make[2]: *** [pretty-print.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/gcc-main/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/gcc-main/build/gcc'
make: *** [bootstrap] Error 2
The hunk of code is the following:
{
int n;
const char *s;
/* We handle no precision specifier but `%.*s'. */
if (*++text->format_spec != '*')
abort ();
else if (*++text->format_spec != 's')
abort ();
n = va_arg (*text->args_ptr, int);
s = va_arg (*text->args_ptr, const char *);
pp_append_text (pp, s, s + n);
}
Josef
More information about the Gcc
mailing list