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]

Restore bootstrap on i386-darwin



Hi Richard and Geoff,


your latest patches both broke bootstrap on i386-darwin due to trivial omissions. I'm committing the attached patch under the obviously correct rule. It restores the build of a compiler configured with --enable-languages=c,fortran. Testing is underway.

Cheers,
- Tobi

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 122794)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2007-03-10  Tobias Schlüter  <tobi@gcc.gnu.org>
+
+	* config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
+	quotation mark.
+	* config/i386/darwin.c (machopic_select_section): Remove
+	superfluous argument in call to categorize_decl_for_section.
+	Remove unused variable shlib.
+
 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
 
 	PR target/31101
Index: gcc/config/i386/darwin.h
===================================================================
--- gcc/config/i386/darwin.h	(revision 122794)
+++ gcc/config/i386/darwin.h	(working copy)
@@ -88,7 +88,7 @@ Boston, MA 02110-1301, USA.  */
  "%{!m64|fgnu-runtime:10.4;				\
     ,objective-c|,objc-cpp-output:10.5;			\
     ,objective-c++|,objective-c++-cpp-output:10.5;	\
-    :10.4}
+    :10.4}"
 
 #undef SUBTARGET_EXTRA_SPECS
 #define SUBTARGET_EXTRA_SPECS                                   \
Index: gcc/config/darwin.c
===================================================================
--- gcc/config/darwin.c	(revision 122794)
+++ gcc/config/darwin.c	(working copy)
@@ -1182,10 +1182,9 @@ machopic_select_section (tree decl,
 	       && (lookup_attribute ("weak", DECL_ATTRIBUTES (decl))
 		   || ! lookup_attribute ("weak_import",
 					  DECL_ATTRIBUTES (decl))));
-  int shlib = flag_pic;
   section *base_section;
 
-  switch (categorize_decl_for_section (decl, reloc, shlib))
+  switch (categorize_decl_for_section (decl, reloc))
     {
     case SECCAT_TEXT:
       base_section = darwin_text_section (reloc, weak);

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