This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR 138091 [PATCH, committed] Fix breakage in building objective C libraries
- From: Michael Meissner <gnu at the-meissners dot org>
- To: Michael Meissner <gnu at the-meissners dot org>, gcc-patches at gcc dot gnu dot org, karthikkumar at gmail dot com
- Date: Wed, 23 Jul 2008 15:09:46 -0400
- Subject: PR 138091 [PATCH, committed] Fix breakage in building objective C libraries
- References: <20080723103750.GA9075@tiktok.the-meissners.org>
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