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]

Re: Rework the handling of assembler sections


Hello,

I will commit the below patch soon. Suggested by Richard and acked by him on IRC in case of sucessful build.

The build broke in libobjc on darwin-pcc.

Complete bootstrap with --enable-languages=c,c++,fortran,java,objc,obj-c++.

Andreas

2005-12-07  Richard Sandiford  <richard@codesourcery.com>
	    Andreas Tobler  <a.tobler@schweiz.ch>

* config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.

Index: config/darwin.h
===================================================================
--- config/darwin.h     (revision 108170)
+++ config/darwin.h     (working copy)
@@ -610,7 +610,7 @@
 #define MAX_OFILE_ALIGNMENT 0x8000

 /* Declare the section variables.  */
-#ifndef IN_LIBGCC2
+#ifndef USED_FOR_TARGET
 #define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) extern section *NAME;
 #include "darwin-sections.def"
 #undef DEF_SECTION


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