This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

remove dead code in i386 backend


I grepped around and it seems that this is indeed unused.  Okay to
remove?  Tested with an i686-pc-linux-gnu bootstrap.

Ben

2004-11-24  Ben Elliston  <bje@au.ibm.com>

	* config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
	* config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
	* config/i386/i386-protos.h (i386_dwarf_output_addr_const):
	Likewise.
	
Index: i386-protos.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/config/i386/i386-protos.h,v
retrieving revision 1.119
diff -u -p -r1.119 i386-protos.h
--- i386-protos.h	15 Sep 2004 17:03:05 -0000	1.119
+++ i386-protos.h	24 Nov 2004 06:08:23 -0000
@@ -120,7 +120,6 @@ extern const char *output_387_reg_move (
 extern const char *output_fix_trunc (rtx, rtx*);
 extern const char *output_fp_compare (rtx, rtx*, int, int);
 
-extern void i386_dwarf_output_addr_const (FILE*, rtx);
 extern void i386_output_dwarf_dtprel (FILE*, int, rtx);
 
 extern void ix86_expand_clear (rtx);
Index: i386.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.743
diff -u -p -r1.743 i386.c
--- i386.c	23 Nov 2004 19:55:23 -0000	1.743
+++ i386.c	24 Nov 2004 06:08:23 -0000
@@ -5908,26 +5908,6 @@ output_pic_addr_const (FILE *file, rtx x
     }
 }
 
-/* This is called from dwarfout.c via ASM_OUTPUT_DWARF_ADDR_CONST.
-   We need to handle our special PIC relocations.  */
-
-void
-i386_dwarf_output_addr_const (FILE *file, rtx x)
-{
-#ifdef ASM_QUAD
-  fprintf (file, "%s", TARGET_64BIT ? ASM_QUAD : ASM_LONG);
-#else
-  if (TARGET_64BIT)
-    abort ();
-  fprintf (file, "%s", ASM_LONG);
-#endif
-  if (flag_pic)
-    output_pic_addr_const (file, x, '\0');
-  else
-    output_addr_const (file, x);
-  fputc ('\n', file);
-}
-
 /* This is called from dwarf2out.c via ASM_OUTPUT_DWARF_DTPREL.
    We need to emit DTP-relative relocations.  */
 
Index: i386.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.404
diff -u -p -r1.404 i386.h
--- i386.h	23 Nov 2004 01:22:56 -0000	1.404
+++ i386.h	24 Nov 2004 06:08:23 -0000
@@ -2796,12 +2796,6 @@ do {									\
 #define JUMP_TABLES_IN_TEXT_SECTION \
   (!TARGET_64BIT && flag_pic && !HAVE_AS_GOTOFF_IN_DATA)
 
-/* A C statement that outputs an address constant appropriate to
-   for DWARF debugging.  */
-
-#define ASM_OUTPUT_DWARF_ADDR_CONST(FILE, X) \
-  i386_dwarf_output_addr_const ((FILE), (X))
-
 /* Emit a dtp-relative reference to a TLS variable.  */
 
 #ifdef HAVE_AS_TLS


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]