2014-10-22 Richard Biener <rguenther@suse.de>
commit129ef22c09812bd4633b52c9e10c5a5de53f109f
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Oct 2014 08:25:55 +0000 (23 08:25 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Oct 2014 08:25:55 +0000 (23 08:25 +0000)
tree004e2ca23be9197e0f29a83864df1f382bc5f99b
parent477ef9220d2f68eb35ec62a3e7f33a2c6428fa5d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216575 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/stor-layout.c