Fix PR 36907, breakage in building libobj with function specific changes
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jul 2008 19:03:40 +0000 (19:03 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jul 2008 19:03:40 +0000 (19:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138091 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optc-gen.awk
gcc/opth-gen.awk

index 3b93a7c..9251ca3 100644 (file)
@@ -1,3 +1,10 @@
+2008-07-23  Michael Meissner  <gnu@the-meissners.org>
+
+       PR 36907
+       * opth-gen.awk: Suppress function specific features when building
+       target libraries.
+       * optc-gen.awk: Ditto.
+
 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
 
        PR 35058
index 845efb4..d53ba69 100644 (file)
@@ -225,7 +225,7 @@ for (i = 0; i < n_opts; i++) {
 print "};"
 
 print "";
-print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2)"
+print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS)"
 print "";
 print "/* Save optimization variables into a structure.  */"
 print "void";
index 7c1d92a..a67e5b7 100644 (file)
@@ -95,7 +95,7 @@ print ""
 # Also, order the structure so that pointer fields occur first, then int
 # fields, and then char fields to provide the best packing.
 
-print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2)"
+print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS)"
 print ""
 print "/* Structure to save/restore optimization and target specific options.  */";
 print "struct cl_optimization GTY(())";