This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: Use LOCAL_LABEL_PREFIX when creating local labels


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

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