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]

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


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

Attachment: aix-lineno.patch
Description: Text document


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