[patch] Do not call const_binop on MEM_EXPR
Eric Botcazou
ebotcazou@adacore.com
Thu Jan 22 15:07:00 GMT 2015
Hi,
const_binop is now invoked on MEM_EXPR, which doesn't make much sense given
the assertion at the end:
/* Make sure type and arg0 have the same saturating flag. */
gcc_checking_assert (TYPE_SATURATING (type)
== TYPE_SATURATING (TREE_TYPE (arg1)));
Tested on x86_64-suse-linux, OK for the mainline?
2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
* fold-const.c (fold_binary_loc): Do not call const_binop on MEM_REF.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150122/5ca514ae/attachment.bin>
More information about the Gcc-patches
mailing list