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]

Re: 3.0.1 PATCH: Support #pragma weak on IRIX 5/6


H . J . Lu writes:

> Why not check if ASM_WEAKEN_LABEL is defined first? Like

oops, you're right.  This didn't happen on any of the platforms I have here.

Can this patch go in as obvious, without a bootstrap, branch and mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Wed Jul 18 21:01:02 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.

Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.31.2.7
diff -u -p -r1.31.2.7 defaults.h
--- defaults.h	2001/07/17 12:51:29	1.31.2.7
+++ defaults.h	2001/07/18 19:02:05
@@ -131,7 +131,8 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
 #endif
 
 /* This is how we tell the assembler that a symbol is weak.  */
-#if !defined (ASM_OUTPUT_WEAK_ALIAS) && defined (ASM_OUTPUT_DEF)
+#ifndef ASM_OUTPUT_WEAK_ALIAS
+#if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
 #define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE)	\
   do							\
     {							\
@@ -140,6 +141,7 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
         ASM_OUTPUT_DEF (STREAM, NAME, VALUE);		\
     }							\
   while (0)
+#endif
 #endif
 
 /* This determines whether or not we support weak symbols.  */


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