aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b68372..0d96234 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 8c8c54b..eeabb66 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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)