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]

hot cold issues on sparc solaris 9


Hi,

I had to apply the appended patchlet to bring sparc-sun-solaris2.9 back to bootstrap land. Don't know if correct. But at least it compiles now.

I fear that other archs are also missing these text issues.

Could you have a look at it please.

Andreas

Index: gcc/bb-reorder.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/bb-reorder.c,v
retrieving revision 1.67
diff -u -r1.67 bb-reorder.c
--- gcc/bb-reorder.c	9 Apr 2004 19:57:38 -0000	1.67
+++ gcc/bb-reorder.c	10 Apr 2004 11:58:00 -0000
@@ -87,6 +87,12 @@
    the .o file there will be an extra round.*/
 #define N_ROUNDS 5
 
+/* Stubs in case we don't have a return insn.  */
+#ifndef HAVE_return
+#define HAVE_return 0
+#define gen_return() NULL_RTX
+#endif
+
 /* Branch thresholds in thousandths (per mille) of the REG_BR_PROB_BASE.  */
 static int branch_threshold[N_ROUNDS] = {400, 200, 100, 0, 0};
 
Index: gcc/config/sparc/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sysv4.h,v
retrieving revision 1.31
diff -u -r1.31 sysv4.h
--- gcc/config/sparc/sysv4.h	17 Jun 2003 01:31:39 -0000	1.31
+++ gcc/config/sparc/sysv4.h	10 Apr 2004 11:58:00 -0000
@@ -130,6 +130,11 @@
 #define INIT_SECTION_ASM_OP	"\t.section\t\".init\""
 #define FINI_SECTION_ASM_OP	"\t.section\t\".fini\""
 
+#define HOT_TEXT_SECTION_NAME ".text"
+#define NORMAL_TEXT_SECTION_NAME ".text"
+#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
+#define SECTION_FORMAT_STRING ".section\t\"%s\"\n\t.align 2\n"
+
 /* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
  
    Note that we want to give these sections the SHF_WRITE attribute

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