Patch: Poison ASM_MAKE_LABEL_LINKONCE

Steve Ellcey sje@cup.hp.com
Fri Jan 19 18:18:00 GMT 2007


This patch was preapproved by Ian Lance Taylor and tested on IA64 Linux.
It poisons the macro ASM_MAKE_LABEL_LINKONCE which is never set anywhere
and removes its use from varasm.c.  I will check it in shortly.

Steve Ellcey
sje@cup.hp.com

2007-01-19  Steve Ellcey  <sje@cup.hp.com>

	* system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
	* varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.

Index: system.h
===================================================================
--- system.h	(revision 120946)
+++ system.h	(working copy)
@@ -736,7 +736,8 @@ extern void fancy_abort (const char *, i
 	EXTRA_SECTIONS EXTRA_SECTION_FUNCTIONS READONLY_DATA_SECTION	   \
 	TARGET_ASM_EXCEPTION_SECTION TARGET_ASM_EH_FRAME_SECTION	   \
 	SMALL_ARG_MAX ASM_OUTPUT_SHARED_BSS ASM_OUTPUT_SHARED_COMMON	   \
-	ASM_OUTPUT_SHARED_LOCAL UNALIGNED_WORD_ASM_OP
+	ASM_OUTPUT_SHARED_LOCAL UNALIGNED_WORD_ASM_OP			   \
+	ASM_MAKE_LABEL_LINKONCE
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\
Index: varasm.c
===================================================================
--- varasm.c	(revision 120946)
+++ varasm.c	(working copy)
@@ -4775,9 +4775,6 @@ globalize_decl (tree decl)
 
       return;
     }
-#elif defined(ASM_MAKE_LABEL_LINKONCE)
-  if (DECL_ONE_ONLY (decl))
-    ASM_MAKE_LABEL_LINKONCE (asm_out_file, name);
 #endif
 
   targetm.asm_out.globalize_label (asm_out_file, name);



More information about the Gcc-patches mailing list