aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>2008-07-23 19:03:40 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2008-07-23 19:03:40 +0000
commite62fe68a6400c082dd735c29b83890e4935ea36d (patch)
treee1b66dfd1abc8f3e9d333c11479b4bc0d84845bb
parentfcf73884fb9b2a6ae5518beb715b3e6fd3161699 (diff)
downloadgcc-e62fe68a6400c082dd735c29b83890e4935ea36d.zip
gcc-e62fe68a6400c082dd735c29b83890e4935ea36d.tar.gz
gcc-e62fe68a6400c082dd735c29b83890e4935ea36d.tar.bz2
Fix PR 36907, breakage in building libobj with function specific changes
From-SVN: r138091
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/optc-gen.awk2
-rw-r--r--gcc/opth-gen.awk2
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b93a7c..9251ca3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index 845efb4..d53ba69a 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -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";
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk
index 7c1d92a..a67e5b7 100644
--- a/gcc/opth-gen.awk
+++ b/gcc/opth-gen.awk
@@ -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(())";