[PATCH PR46655] Stop emitting invalid numbers to '.line' directive on AIX
Richard Guenther
richard.guenther@gmail.com
Mon Jan 17 13:11:00 GMT 2011
On Mon, Jan 17, 2011 at 12:27 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> As of http://gcc.gnu.org/PR46655, recent AIX-as does bounds checking
>> on '.line' numbers to be >0, as well as <64k in 32bit mode.
>>
>> Additionally, this patch emits the '.line' numbers as 'unsigned' ("%u"),
>> to match XCOFF declaration in /usr/include/linenum.h, which is either
>> 'unsigned short' in 32bit mode or 'unsigned int' in 64bit mode.
>>
>> For gcc/ChangeLog:
>>
>> 2010-11-30 Olivier Hainque <hainque@adacore.com>
>> Michael Haubenwallner <michael.haubenwallner@salomon.at>
>>
>> PR target/46655
>> * xcoffout.c (ASM_OUTPUT_LINE): Output line as unsigned,
>> when line > 0, and line <= USHRT_MAX in 32bit mode.
>
> Can anyone approve this? This fixes an annoying problem on AIX.
Ok.
Thanks,
Richard.
> --
> Eric Botcazou
>
More information about the Gcc-patches
mailing list