This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Associate a name with a CODE_LABEL
- To: Catherine Moore <clm at cygnus dot com>
- Subject: Re: [patch] Associate a name with a CODE_LABEL
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 04 Nov 1999 10:58:56 +0000
- Cc: Richard Henderson <rth at cygnus dot com>, gcc-patches at gcc dot gnu dot org
- Cc: richard dot earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: richard dot earnshaw at arm dot com
clm@cygnus.com said:
+ /* Provide default for ASM_OUTPUT_ALTERNATE_LABEL_NAME. */
+ #ifndef ASM_OUTPUT_ALTERNATE_LABEL_NAME
+ #define ASM_OUTPUT_ALTERNATE_LABEL_NAME(FILE,INSN) \
+ fprintf (FILE, "%s:\n", LABEL_ALTERNATE_NAME (INSN))
+ #endif
+
This on its own will mean that any port that does not use ':' as a label
declaration will now be broken (the arm-aof port springs to mind). Would
it not be better to define this in terms of some other label_generation
macro (I'm not entirely sure of the intended use, but ASM_OUTPUT_LABEL
might be more appropriate).
Richard.