http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51144
Steve Ellcey <sje at cup dot hp.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-11-16 Ever Confirmed|0 |1 --- Comment #4 from Steve Ellcey <sje at cup dot hp.com> 2011-11-16 19:19:17 UTC --- It looks like fprint_w is broken for systems where HOST_WIDE_INT is 'long long' and that type is longer then type 'long'. Inside fprint_w we call sprint_ul_rev and that function is defined to take a 'unsigned long' argument instead of a 'long long' argument which can cause a truncation of the incoming value that we are trying to print. I am testing this patch to see if it fixes all the problems. Index: ../src/trunk/gcc/final.c =================================================================== --- ../src/trunk/gcc/final.c (revision 181279) +++ ../src/trunk/gcc/final.c (working copy) @@ -3585,7 +3585,7 @@ output_addr_const (FILE *file, rtx x) break; case CONST_INT: - fprint_w (file, INTVAL (x)); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x)); break; case CONST: