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]
Other format: [Raw text]

Re: [PATCH] elfos.h label rollover appears negative


David Edelsohn <dje@watson.ibm.com> writes:

> 	I encountered a problem on AIX where GCC printed a negative number
> as a label count which the assembler interpreted as a difference
> calculation.  elfos.h gave me the insight for the fix which I applied to
> AIX, but I noticed that elfos.h also has a similar error.
> 
> 	elfos.h defines ASM_GENERATE_INTERNAL_LABEL correctly, but
> ASM_OUTPUT_INTERNAL_LABEL still prints a signed value.  This patch makes
> the two macros defined in elfos.h consistent so that
> 
> ".%s%d:"
> 
> does not produce
> 
> L-1347440721:

> 	* config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.

This patch is OK.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


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