PR 138091 [PATCH, committed] Fix breakage in building objective C libraries
Michael Meissner
gnu@the-meissners.org
Wed Jul 23 21:23:00 GMT 2008
This patch was committed on revision 138091. I did a full bootstrap build of
all languages including Object C/C++, Java, and Ada to test that it fixes the
breakage.
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.
Index: gcc/optc-gen.awk
===================================================================
--- gcc/optc-gen.awk (revision 138090)
+++ gcc/optc-gen.awk (working copy)
@@ -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: gcc/opth-gen.awk
===================================================================
--- gcc/opth-gen.awk (revision 138090)
+++ gcc/opth-gen.awk (working copy)
@@ -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(())";
--
Michael Meissner
email: gnu@the-meissners.org
http://www.the-meissners.org
More information about the Gcc-patches
mailing list