[patch] Remove SHARED_SECTION_ASM_OP.

Kazu Hirata kazu@cs.umass.edu
Sun Feb 8 01:25:00 GMT 2004


Hi,

Attached is a patch to remove SHARED_SECTION_ASM_OP, which is not used
by any target.  (i370 port used to used this.)

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>

	* system.h (SHARED_SECTION_ASM_OP): Poison.
	* varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
	* doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.

Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.195
diff -u -r1.195 system.h
--- system.h	7 Feb 2004 17:06:19 -0000	1.195
+++ system.h	7 Feb 2004 17:11:45 -0000
@@ -634,7 +636,7 @@
 	PROMOTED_MODE EXPAND_BUILTIN_VA_END				   \
 	LINKER_DOES_NOT_WORK_WITH_DWARF2 FUNCTION_ARG_KEEP_AS_REFERENCE	   \
 	GIV_SORT_CRITERION MAX_LONG_TYPE_SIZE MAX_LONG_DOUBLE_TYPE_SIZE	   \
-	MAX_WCHAR_TYPE_SIZE GCOV_TYPE_SIZE
+	MAX_WCHAR_TYPE_SIZE GCOV_TYPE_SIZE SHARED_SECTION_ASM_OP
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.410
diff -u -r1.410 varasm.c
--- varasm.c	3 Feb 2004 21:24:39 -0000	1.410
+++ varasm.c	7 Feb 2004 17:11:48 -0000
@@ -210,16 +210,7 @@
   if (in_section != in_data)
     {
       in_section = in_data;
-      if (flag_shared_data)
-	{
-#ifdef SHARED_SECTION_ASM_OP
-	  fprintf (asm_out_file, "%s\n", SHARED_SECTION_ASM_OP);
-#else
-	  fprintf (asm_out_file, "%s\n", DATA_SECTION_ASM_OP);
-#endif
-	}
-      else
-	fprintf (asm_out_file, "%s\n", DATA_SECTION_ASM_OP);
+      fprintf (asm_out_file, "%s\n", DATA_SECTION_ASM_OP);
     }
 }
 
Index: doc/tm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.295
diff -u -r1.295 tm.texi
--- doc/tm.texi	7 Feb 2004 17:06:25 -0000	1.295
+++ doc/tm.texi	7 Feb 2004 17:11:56 -0000
@@ -5789,12 +5789,6 @@
 in the text section.
 @end defmac
 
-@defmac SHARED_SECTION_ASM_OP
-If defined, a C expression whose value is a string, including spacing,
-containing the assembler operation to identify the following data as
-shared data.  If not defined, @code{DATA_SECTION_ASM_OP} will be used.
-@end defmac
-
 @defmac BSS_SECTION_ASM_OP
 If defined, a C expression whose value is a string, including spacing,
 containing the assembler operation to identify the following data as



More information about the Gcc-patches mailing list