This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix an rs6000.c comment
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Jan 2004 00:08:09 +1030
- Subject: fix an rs6000.c comment
Committing under the obvious rule.
gcc/ChangeLog
* 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.
Index: gcc/config/rs6000/rs6000-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000-protos.h,v
retrieving revision 1.70
diff -u -p -r1.70 rs6000-protos.h
--- gcc/config/rs6000/rs6000-protos.h 12 Jan 2004 08:11:24 -0000 1.70
+++ gcc/config/rs6000/rs6000-protos.h 15 Jan 2004 13:28:40 -0000
@@ -184,7 +184,6 @@ extern void private_data_section (void);
extern void read_only_data_section (void);
extern void read_only_private_data_section (void);
extern int get_TOC_alias_set (void);
-extern int uses_TOC (void);
extern void rs6000_emit_prologue (void);
extern void rs6000_emit_load_toc_table (int);
extern void rs6000_aix_emit_builtin_unwind_init (void);
Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.573
diff -u -p -r1.573 rs6000.c
--- gcc/config/rs6000/rs6000.c 14 Jan 2004 10:57:40 -0000 1.573
+++ gcc/config/rs6000/rs6000.c 15 Jan 2004 13:28:49 -0000
@@ -11138,11 +11138,10 @@ get_TOC_alias_set (void)
}
/* This returns nonzero if the current function uses the TOC. This is
- determined by the presence of (unspec ... UNSPEC_TOC) or
- use (unspec ... UNSPEC_TOC), which are generated by the various
- load_toc_* patterns. */
+ determined by the presence of (use (unspec ... UNSPEC_TOC)), which
+ is generated by the ABI_V4 load_toc_* patterns. */
-int
+static int
uses_TOC (void)
{
rtx insn;
@@ -15167,7 +15166,7 @@ rs6000_elf_declare_function_name (FILE *
if (TARGET_RELOCATABLE
&& (get_pool_size () != 0 || current_function_profile)
- && uses_TOC())
+ && uses_TOC ())
{
char buf[256];
--
Alan Modra
IBM OzLabs - Linux Technology Centre