[PATCH,fortran] Reap dead code

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Oct 26 17:53:00 GMT 2011


On Sat, Oct 22, 2011 at 01:16:14PM -0700, Steve Kargl wrote:
> The attach patch reaps some code that is now dead
> due to my recent changes for ishftc in check.c.
> Regression tested on i686-*-freebsd.
> 
> 2011-10-22  Steevn G. Kargl  <kargl@gcc.gnu.org>
> 
> 	* simplify.c (gfc_simplify_ishftc): Reap dead code.

Here's a revised patch that does 2 things.  First, it adds
a check in gfc_check_nearest that the 2nd argument (if it
is a constant) is not zero.  Second, it reaps a dead code
in several of the simplification functions.  


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

	* check.c (gfc_check_atan_2): Typo in comment.
	(gfc_check_nearest): If 's' is constant, check that it is not 0.
	* simplify.c (simplify_dshift, gfc_simplify_ibclr, gfc_simplify_ibits,
	gfc_simplify_ibset, simplify_shift, gfc_simplify_ishftc,
	gfc_simplify_nearest): Remove dead code.

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

	* gfortran.dg/nearest_5.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dead.diff
Type: text/x-diff
Size: 6405 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111026/9d79bbb5/attachment.bin>


More information about the Fortran mailing list