[PATCH] Fix PR43438

Eric Botcazou ebotcazou@adacore.com
Sat Mar 20 11:44:00 GMT 2010


> 2010-03-19  Richard Guenther  <rguenther@suse.de>
>
> 	PR rtl-optimization/43438
> 	* combine.c (make_extraction): Properly zero-/sign-extend an
> 	extraction of the low part of a CONST_INT.

You can drop the mode check on CONST_DOUBLE, tmode is defined as

  enum machine_mode tmode = mode_for_size (len, MODE_INT, 1);

so you won't get a floating-point CONST_DOUBLE here.  The ChangeLog needs to 
mention CONST_DOUBLE as well.  Otherwise OK, thanks.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list