[PATCH PR46655] Stop emitting invalid numbers to '.line' directive on AIX

Michael Haubenwallner michael.haubenwallner@salomon.at
Tue Nov 30 17:13:00 GMT 2010


Hello!

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.

Thank you!
Michael Haubenwallner
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aix-lineno.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101130/e238ddd7/attachment.ksh>


More information about the Gcc-patches mailing list