This is the mail archive of the gcc-bugs@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]

a bug in printf checking?


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");
}
============================================================


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