This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[PATCH] [COMMITED] Fix bootstrap on powerpc-apple-darwin after setting need 64 HOST_WIDE_INT


Basically when the patch for branch islands went into the mainline, Stuart did not
know (or forgot) that he was using a HOST_WIDE_INT and when printing he should
use HOST_WIDE_INT_PRINT_UNSIGNED instead of %lu directly.


Thanks,
Andrew Pinski

Applied to the mainline.


ChangeLog:


2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>

	* config/rs6000/rs6000.c (macho_branch_islands): Use
	HOST_WIDE_INT_PRINT_UNSIGNED.


Patch:
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.553
diff -u -p -r1.553 rs6000.c
--- config/rs6000/rs6000.c 5 Dec 2003 00:44:56 -0000 1.553
+++ config/rs6000/rs6000.c 7 Dec 2003 01:31:28 -0000
@@ -14782,7 +14782,7 @@ macho_branch_islands (void)
strcat (tmp_buf, label);
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
if (write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)
- fprintf (asm_out_file, "\t.stabd 68,0,%lu\n",
+ fprintf (asm_out_file, "\t.stabd 68,0," HOST_WIDE_INT_PRINT_UNSIGNED "\n",
BRANCH_ISLAND_LINE_NUMBER(branch_island));
#endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
if (flag_pic)
@@ -14820,7 +14820,7 @@ macho_branch_islands (void)
output_asm_insn (tmp_buf, 0);
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
if (write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)
- fprintf(asm_out_file, "\t.stabd 68,0,%lu\n",
+ fprintf(asm_out_file, "\t.stabd 68,0," HOST_WIDE_INT_PRINT_UNSIGNED "\n",
BRANCH_ISLAND_LINE_NUMBER (branch_island));
#endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
}



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