Fix PR 36907, breakage in building libobj with function specific changes
authorMichael Meissner <gnu@the-meissners.org>
Wed, 23 Jul 2008 19:03:40 +0000 (19:03 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 23 Jul 2008 19:03:40 +0000 (19:03 +0000)
From-SVN: r138091

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

index 3b93a7c36699c6a65c2e4caf81d3ef2eb15719cd..9251ca3ca65dd53d17a13fb75328e9392f446dda 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 845efb4a5157d99fb5c7e066513acd700738269f..d53ba69aa76c11ff991b92a3d2db7fdc47b60062 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 7c1d92ac4fa94542741c8e0196d63847a77bff71..a67e5b77a8b97fd1a6cea89a1d8ec10288f64e40 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(())";