[PATCH] [COMMITTED] Fix (warning) bootstrap on powerpc-apple-darwin

Andrew Pinski pinskia@physics.uc.edu
Thu Jan 15 19:37:00 GMT 2004


After this patch:
2004-01-15  Alan Modra  <amodra@bigpond.net.au>

         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make 
static.
         (rs6000_elf_declare_function_name): Formatting.
         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.

GCC would warn about uses_TOC if TARGET_ELF was not true.
This patch fixes that, I applied it as obvious.

ChangeLog:

2004-01-15  Andrew Pinski  <apinski@apple.com>

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


Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.574
diff -u -p -r1.574 rs6000.c
--- rs6000.c	15 Jan 2004 13:39:23 -0000	1.574
+++ rs6000.c	15 Jan 2004 19:32:46 -0000
@@ -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)



More information about the Gcc-patches mailing list