From e62fe68a6400c082dd735c29b83890e4935ea36d Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 23 Jul 2008 19:03:40 +0000 Subject: [PATCH] Fix PR 36907, breakage in building libobj with function specific changes From-SVN: r138091 --- gcc/ChangeLog | 7 +++++++ gcc/optc-gen.awk | 2 +- gcc/opth-gen.awk | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b93a7c3669..9251ca3ca65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-07-23 Michael Meissner + + PR 36907 + * opth-gen.awk: Suppress function specific features when building + target libraries. + * optc-gen.awk: Ditto. + 2008-07-23 Manuel Lopez-Ibanez PR 35058 diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index 845efb4a515..d53ba69aa76 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 7c1d92ac4fa..a67e5b77a8b 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(())"; -- 2.30.2