a bug in printf checking?
Kazu Hirata
kazu@hxi.com
Sat Oct 7 10:56:00 GMT 2000
Hi,
I am trying out the latest CVS snapshot. The attached code causes
h8300-hms-gcc to crash. It seems that this starts happening right
around the following patch. (I rolled back right before the patch,
and gcc was OK.)
http://gcc.gnu.org/ml/gcc-cvs/2000-10/msg00075.html
Interestingly, -O0 does not cause the problem. I haven't looked into
details yet.
printf.c: In function `test':
printf.c:10: Tree check: expected class 'd', have 'c' (string_cst)
printf.c:10: Internal compiler error in output_constant_def, at varasm.c:3123
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
Kazu Hirata
===File ~/work/dev/h8os/printf.c============================
/* OK: h8300-hms-gcc -O0 -c printf.c */
/* NG: h8300-hms-gcc -O1 -c printf.c */
/* NG: h8300-hms-gcc -O2 -c printf.c */
int printf (const char *, ...);
void
test ()
{
printf ("Hello, world!\n");
}
============================================================
More information about the Gcc-bugs
mailing list