fold-const.c (fold_binary_loc): Preserve side-effects of X - X when simplifying to 0.
authorRichard Biener <rguenther@suse.de>
Thu, 23 Oct 2014 08:25:55 +0000 (08:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 23 Oct 2014 08:25:55 +0000 (08:25 +0000)
commit4d885a639e4a72665b95fa895032d2600418d390
tree004e2ca23be9197e0f29a83864df1f382bc5f99b
parenta15d2ea8adf0aeb4e02872b0fb55b513035de2d6
fold-const.c (fold_binary_loc): Preserve side-effects of X - X when simplifying to 0.

2014-10-22  Richard Biener  <rguenther@suse.de>

* fold-const.c (fold_binary_loc): Preserve side-effects of
X - X when simplifying to 0.
* stor-layout.c (finish_bitfield_representative): Strip
side-effects of evaluating the difference of two DECL_FIELD_OFFSET.

From-SVN: r216575
gcc/ChangeLog
gcc/fold-const.c
gcc/stor-layout.c