[PATCH] fortran/50514 -- Fix static chekcing of ISHFT[C] arguments.

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Oct 15 21:21:00 GMT 2011


This patch fixes the checking of constant SHIFT values against
the bitsize of the argument to be shifted.  I've been running
this patch on amd64-*-freebsd for sevearl days without a
problem (ie., multiple 'gmake check-gfortran' invocations).

OK for trunk?

2011-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/ishft_3.f90:  Update test.

2011-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	* check.c (less_than_bitsize1): Check |shift| <= bit_size(i).
	(gfc_check_ishftc):  Check |shift| <= bit_size(i) and check
	that size is positive.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ishft.diff
Type: text/x-diff
Size: 3663 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111015/7ee00b1e/attachment.bin>


More information about the Fortran mailing list