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] [committed] get i686-darwin back to bootstrapping


Someone reported to me via IRC that i686-darwin was broke on the
mainline with the following error:
<iooi> ../../gcc-3.5-20040613/gcc/config/darwin.c:1312: error:  `SECTION_FORMAT_STRING' undeclared (first use in this function)

So I know what right away broke it and how to fix it.

I applied this patch as obvious.

Thanks,
Andrew Pinski

2004-06-18  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
        (NORMAL_TEXT_SECTION_NAME): Define.
        (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
        (SECTION_FORMAT_STRING): Define.


Index: config/i386/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/darwin.h,v
retrieving revision 1.14
diff -u -p -r1.14 darwin.h
--- config/i386/darwin.h        15 Mar 2004 18:20:48 -0000      1.14
+++ config/i386/darwin.h        18 Jun 2004 21:00:43 -0000
@@ -93,6 +93,13 @@ Boston, MA 02111-1307, USA.  */
 
 #define LPREFIX "L"
 
+/* These are used by -fbranch-probabilities */
+#define HOT_TEXT_SECTION_NAME "__TEXT,__text,regular,pure_instructions"
+#define NORMAL_TEXT_SECTION_NAME "__TEXT,__text,regular,pure_instructions"
+#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME \ 
+                              "__TEXT,__unlikely,regular,pure_instructions"
+#define SECTION_FORMAT_STRING ".section %s\n\t.align 2\n" 
+
 /* Assembler pseudos to introduce constants of various size.  */
 
 #define ASM_BYTE_OP "\t.byte\t"


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