patch: fix hot/cold basic blocks on powerpc-eabi*
Aldy Hernandez
aldyh@redhat.com
Mon Apr 12 00:02:00 GMT 2004
The called function doesn't exist, which is causing powerpc-eabi and
its variants to not link cc1.
Darwin, AIX, and Linux worked because the offending code is protected
by RELOCATABLE_NEEDS_FIXUP which is UNDEFed by these ppc variants.
The following patch fixes the problem.
Committed as obvious.
2004-04-11 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_assemble_integer): Change
in_text_unlikely_section to in_unlikely_text_section.
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.622
diff -u -p -r1.622 rs6000.c
--- config/rs6000/rs6000.c 9 Apr 2004 19:57:46 -0000 1.622
+++ config/rs6000/rs6000.c 11 Apr 2004 23:50:48 -0000
@@ -9702,7 +9702,7 @@ rs6000_assemble_integer (rtx x, unsigned
if (TARGET_RELOCATABLE
&& !in_toc_section ()
&& !in_text_section ()
- && !in_text_unlikely_section ()
+ && !in_unlikely_text_section ()
&& !recurse
&& GET_CODE (x) != CONST_INT
&& GET_CODE (x) != CONST_DOUBLE
More information about the Gcc-patches
mailing list