rs6000.c (uses_TOC): Wrap #if TARGET_ELF around it.
authorAndrew Pinski <apinski@apple.com>
Thu, 15 Jan 2004 19:37:24 +0000 (19:37 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 15 Jan 2004 19:37:24 +0000 (11:37 -0800)
2004-01-15  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
        around it.

From-SVN: r75940

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2b6837260d7e9851fb623ee7e1f96e118f841f81..0d962340fe777a7beef01b813dc79287b10f2e72 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-15  Andrew Pinski  <apinski@apple.com>
+
+       * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
+       around it.
+
 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (h8300_return_in_memory): New.
index 8c8c54b87a0e23d6915ec14b98271b96da7ccaa9..eeabb66ebe27d08be48c549fb31214ce8bf3e8fd 100644 (file)
@@ -11140,7 +11140,7 @@ get_TOC_alias_set (void)
 /* This returns nonzero if the current function uses the TOC.  This is
    determined by the presence of (use (unspec ... UNSPEC_TOC)), which
    is generated by the ABI_V4 load_toc_* patterns.  */
-
+#if TARGET_ELF
 static int
 uses_TOC (void) 
 {
@@ -11167,6 +11167,7 @@ uses_TOC (void)
       }
   return 0;
 }
+#endif
 
 rtx
 create_TOC_reference (rtx symbol)