This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Use LOCAL_LABEL_PREFIX when creating local labels
- To: rearnsha at arm dot com
- Subject: Re: Use LOCAL_LABEL_PREFIX when creating local labels
- From: Nick Clifton <nickc at redhat dot com>
- Date: Fri, 12 Jan 2001 13:14:42 -0800
- CC: binutils at sources dot redhat dot com
Hi Richard,
: How can this
:
: know (augend == 0 || augend == 1);
: p = symbol_name_build;
: + #ifdef LOCAL_LABEL_PREFIX
: + *p++ = LOCAL_LABEL_PREFIX;
: + #endif
: *p++ = 'L';
:
: /* Next code just does sprintf( {}, "%d", n); */
:
: be correct if LOCAL_LABEL_PREFIX is a string?
Because it isn't a string (for gas), it is a character constant.
: *** coff-arm.c 2000/12/18 20:50:41 1.21
:
: /* Note: the definitions here of LOCAL_LABEL_PREFIX and
: USER_LABEL_PREIFX
: ! *must* match the definitions in gcc/config/arm/{coff|semi|aout}.h. */
: ! #define LOCAL_LABEL_PREFIX ""
: #ifndef USER_LABEL_PREFIX
: #define USER_LABEL_PREFIX "_"
: #endif
:
: So either LOCAL_LABEL_PREFIX must be in single quotes, or the code
: in symbols.c needs changing.
For gas-arm, LOCAL_LABEL_PREFIX is defined in tc-arm.h:
#define LOCAL_LABELS_FB 1
#ifdef OBJ_ELF
#define LOCAL_LABEL_PREFIX '.'
#endif
Cheers
Nick