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 CONST_SECTION_ASM_OP


The following patch removed CONST_SECTION_ASM_OP and the by it defined
function const_section that is only used by darwin and not touched
there:

$ grep -r const_section .
./config/frv/frv-protos.h:extern void const_section             PARAMS ((void));
./config/darwin-protos.h:extern void const_section PARAMS ((void));
./config/darwin.c:    const_section ();
./config/darwin.h:SECTION_FUNCTION (const_section,              \
./config/darwin.h:#define READONLY_DATA_SECTION const_section
./config/vax/vax-protos.h:extern void const_section PARAMS ((void));
./output.h:extern void const_section PARAMS ((void));

Ok to commit after bootstrapping on i686-linux-gnu?

Andreas

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

	* config/frv/frv-protos.h: Remove unused const_section
	declaration.
	* config/vax/vax-protos.h: Likewise.

	* output.h: Remove CONST_SECTION_ASM_OP usage.

	* system.h: Poison CONST_SECTION_ASM_OP.

============================================================
Index: gcc/config/frv/frv-protos.h
--- config/frv/frv-protos.h	14 May 2003 07:29:45 -0000	1.6
+++ config/frv/frv-protos.h	30 May 2003 19:54:02 -0000
@@ -1,5 +1,5 @@
 /* Frv prototypes.
-   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Red Hat, Inc.
 
 This file is part of GNU CC.
@@ -170,7 +170,6 @@ extern int frv_adjust_field_align	PARAMS
 extern void fixup_section		PARAMS ((void));
 extern void sdata_section		PARAMS ((void));
 extern void sbss_section		PARAMS ((void));
-extern void const_section		PARAMS ((void));
 extern void data_section		PARAMS ((void));
 
 #ifdef RTX_CODE
============================================================
Index: gcc/config/vax/vax-protos.h
--- config/vax/vax-protos.h	13 Mar 2003 03:23:55 -0000	1.12
+++ config/vax/vax-protos.h	30 May 2003 19:54:02 -0000
@@ -1,5 +1,5 @@
 /* Definitions of target machine for GNU compiler.  VAX version.
-   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -32,4 +32,3 @@ extern int reg_was_0_p PARAMS ((rtx, rtx
 extern int check_float_value PARAMS ((enum machine_mode, REAL_VALUE_TYPE *, int));
 #endif /* REAL_VALUE_TYPE */
 
-extern void const_section PARAMS ((void));
============================================================
Index: gcc/output.h
--- gcc/output.h	12 May 2003 09:51:16 -0000	1.123
+++ gcc/output.h	30 May 2003 19:54:02 -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.
 
@@ -168,10 +168,6 @@ extern void dtors_section PARAMS ((void)
 
 #ifdef BSS_SECTION_ASM_OP
 extern void bss_section PARAMS ((void));
-#endif
-
-#ifdef CONST_SECTION_ASM_OP
-extern void const_section PARAMS ((void));
 #endif
 
 #ifdef INIT_SECTION_ASM_OP
============================================================
Index: gcc/system.h
--- gcc/system.h	17 May 2003 21:59:25 -0000	1.146
+++ gcc/system.h	30 May 2003 19:54:03 -0000
@@ -640,7 +640,8 @@ 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
+	ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL\
+	CONST_SECTION_ASM_OP
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\

-- 
 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]