Fix integer undefined behavior in simplify-rtx.c
Eric Botcazou
ebotcazou@adacore.com
Mon Oct 11 17:16:00 GMT 2010
This should fix all instances of integer undefined behavior in simplify-rtx.c
reported in: http://gcc.gnu.org/ml/gcc/2010-08/msg00039.html
Bootstrapped/regtested on x86_64-suse-linux, applied on the mainline
2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
* simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
in masking operations.
(simplify_const_unary_operation): Likewise.
(simplify_binary_operation_1): Likewise.
(simplify_const_binary_operation): Likewise.
( simplify_const_relational_operation): Likewise.
(simplify_ternary_operation): Likewise.
(simplify_immed_subreg): Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify_rtx.diff
Type: text/x-diff
Size: 15644 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101011/9c4a9aa8/attachment.bin>
More information about the Gcc-patches
mailing list