opth-gen.awk: Do not declare target save/restore structures and functions if IN_RTS...
authorJoseph Myers <joseph@codesourcery.com>
Fri, 19 Aug 2011 10:16:02 +0000 (11:16 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 19 Aug 2011 10:16:02 +0000 (11:16 +0100)
* opth-gen.awk: Do not declare target save/restore structures and
functions if IN_RTS defined.

From-SVN: r177894

gcc/ChangeLog
gcc/opth-gen.awk

index 7c0c7b5..be47b95 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-19  Joseph Myers  <joseph@codesourcery.com>
+
+       * opth-gen.awk: Do not declare target save/restore structures and
+       functions if IN_RTS defined.
+
 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
        PR target/49437
index 2bae695..541bc3e 100644 (file)
@@ -127,7 +127,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(IN_LIBGCC2) && !defined(IN_TARGET_LIBS)"
+print "#if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)"
 print ""
 print "/* Structure to save/restore optimization and target specific options.  */";
 print "struct GTY(()) cl_optimization";