This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove some conflicting declarations
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 15 Jun 2003 22:24:09 +0100
- Subject: Remove some conflicting declarations
Some target-specific files had their own declarations of some
toplev.c variables, which then broke when I tightened their types.
Grrr. Zack alerted me to these; he is in the process of testing
something similar for rs6000 and mips.
I tested this with a cross to each target.
Neil.
* config/frv/frv.h: Remove declaration of g_switch_value.
* config/m32r/m32r.h: Remove declaration of g_switch_value.
* config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
Index: config/frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.24
diff -u -p -b -r1.24 frv.h
--- config/frv/frv.h 3 Jun 2003 09:06:53 -0000 1.24
+++ config/frv/frv.h 15 Jun 2003 21:20:40 -0000
@@ -2780,8 +2780,6 @@ extern int size_directive_output;
#undef ASM_OUTPUT_ALIGNED_DECL_LOCAL
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGN) \
do { \
- extern unsigned HOST_WIDE_INT g_switch_value; \
- \
if ((SIZE) > 0 && (SIZE) <= g_switch_value) \
sbss_section (); \
else \
Index: config/m32r/m32r.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.h,v
retrieving revision 1.87
diff -u -p -b -r1.87 m32r.h
--- config/m32r/m32r.h 14 Jun 2003 21:47:42 -0000 1.87
+++ config/m32r/m32r.h 15 Jun 2003 21:20:41 -0000
@@ -1687,8 +1687,6 @@ extern char m32r_punct_chars[256];
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
do \
{ \
- extern unsigned HOST_WIDE_INT g_switch_value; \
- \
if (! TARGET_SDATA_NONE \
&& (SIZE) > 0 && (SIZE) <= g_switch_value) \
fprintf ((FILE), "%s", SCOMMON_ASM_OP); \
Index: config/m68hc11/m68hc11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/m68hc11.c,v
retrieving revision 1.78
diff -u -p -b -r1.78 m68hc11.c
--- config/m68hc11/m68hc11.c 22 May 2003 17:54:18 -0000 1.78
+++ config/m68hc11/m68hc11.c 15 Jun 2003 21:20:42 -0000
@@ -5666,8 +5666,6 @@ m68hc11_rtx_costs (x, code, outer_code,
/* print_options - called at the start of the code generation for a
module. */
-extern char *asm_file_name;
-
#include <time.h>
#include <sys/types.h>