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]

[Janitor] Remove obsolete macros from output.h


These macros are used nowhere - and the functions are neither used nor
implemented anywhere.

I'm bootstrapping on i686-linux-gnu now.  Ok to commit if bootstrap
passes?

Andreas

2003-05-31  Andreas Jaeger  <aj@suse.de>

	* config/arm/arm-protos.h: Remove unused rdate_section prototype.

	* output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
	dependend code.

	* system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
============================================================
Index: gcc/output.h
--- gcc/output.h	12 May 2003 09:51:16 -0000	1.123
+++ gcc/output.h	31 May 2003 19:33:59 -0000
@@ -1,7 +1,7 @@
 /* Declarations for insn-output.c.  These functions are defined in recog.c,
    final.c, and varasm.c.
    Copyright (C) 1987, 1991, 1994, 1997, 1998,
-   1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -170,10 +170,6 @@ extern void dtors_section PARAMS ((void)
 extern void bss_section PARAMS ((void));
 #endif
 
-#ifdef CONST_SECTION_ASM_OP
-extern void const_section PARAMS ((void));
-#endif
-
 #ifdef INIT_SECTION_ASM_OP
 extern void init_section PARAMS ((void));
 #endif
@@ -186,20 +182,12 @@ extern void fini_section PARAMS ((void))
 extern void exports_section PARAMS ((void));
 #endif
 
-#ifdef TDESC_SECTION_ASM_OP
-extern void tdesc_section PARAMS ((void));
-#endif
-
 #ifdef DRECTVE_SECTION_ASM_OP
 extern void drectve_section PARAMS ((void));
 #endif
 
 #ifdef SDATA_SECTION_ASM_OP
 extern void sdata_section PARAMS ((void));
-#endif
-
-#ifdef RDATA_SECTION_ASM_OP
-extern void rdata_section PARAMS ((void));
 #endif
 
 /* Tell assembler to change to section NAME for DECL.
============================================================
Index: gcc/system.h
--- gcc/system.h	31 May 2003 18:45:26 -0000	1.148
+++ gcc/system.h	31 May 2003 19:34:00 -0000
@@ -640,8 +640,13 @@ typedef char _Bool;
 	BLOCK_PROFILER BLOCK_PROFILER_CODE FUNCTION_BLOCK_PROFILER	   \
 	FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE			   \
 	MACHINE_STATE_RESTORE SCCS_DIRECTIVE SECTION_ASM_OP		   \
 	ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL \
+	TDESC_SECTION_ASM_OP RDATA_SECTION_ASM_OP \
 	OBJC_PROLOGUE ALLOCATE_TRAMPOLINE HANDLE_PRAGMA
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\
============================================================
Index: gcc/config/arm/arm-protos.h
--- config/arm/arm-protos.h	14 May 2003 07:29:42 -0000	1.54
+++ config/arm/arm-protos.h	31 May 2003 19:34:00 -0000
@@ -23,7 +23,6 @@
 #ifndef GCC_ARM_PROTOS_H
 #define GCC_ARM_PROTOS_H
 
-extern void   rdata_section		PARAMS ((void));
 extern void   arm_override_options	PARAMS ((void));
 extern int    use_return_insn		PARAMS ((int));
 extern int    arm_regno_class 		PARAMS ((int));

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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