This is the mail archive of the gcc@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: unwind-dw2-fde.c change breaks AIX


> 	I am testing with it defined to "".
> 
> 	USER_LABEL_PREFIX originally was defined in rs6000.h by J"orn in
> Sep 1996 (FSFChangeLog.11).  Maybe he has some idea why he chose that
> definition.

This was the explanation I sent with the patch to Richard Kenner:

 __USER_LABEL_PREFIX__ is documented in cpp.texi, without any restrictions
 on targets.
 USER_LABEL_PREFIX is used in cccp.c and cpplib.c to implement it;
 however, it is only defined in a few target header files.
 The appended patch is meant to fix this.  basically, I have defined
 USER_LABEL_PREFIX instead of ASM_OUTPUT_LABELREF, and provided a definition
 for the latter in defaults.h .  Only in cases where ASM_OUTPUT_LABELREF
 has to do something fancy, I had to leave extra definitions.
 
 There are still some limitations for this implemention of
 __USER_LABEL_PREFIX__ , which I have documented in cpp.texi.
 They to overcome these limitations, the preprocessor would have
 to know about the target specific flags; I think that is not worth
 while right now.

So this was a wholesale change that was not supposed to change prefixes,
but to make them accessible in __USER_LABEL_PREFIX__ .
 
Looking at the source from back then, it appears I got the rs6000.h file
wrong; I should have defined USER_LABEL_PREFIX as "" and removed the
definition of ASM_OUTPUT_LABELREF .


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