[patch, fortran] PR43217 Output of Hollerith constants which are not a multiple of 4 bytes

Jerry DeLisle jvdelisle@frontier.com
Thu Aug 26 01:15:00 GMT 2010


Hi,

The attached patch fixes this by padding the constant when it is created to fit 
into a default integer size.

Regression tested on i686-gnu-linux. I will dejagnu the test case in the PR.

OK for trunk?

Regards,

Jerry

2010-08-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/43217
	* primary.c (match_hollerith_constant): Calculate padding needed to
	fill default integer and allocate string for that size.  Set pad bytes
	to ' '.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43217.diff
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100826/9d9ef1cc/attachment.bin>


More information about the Fortran mailing list