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
Fix SPARC testsuite gnu11 fallout

	* gcc.target/sparc/20001013-1.c (main): Declare int return.
	* gcc.target/sparc/mnofpu.c (e1e_rphy): Declare.
	* gcc.target/sparc/sparc-ret.c (toto): Declare.
	* gcc.target/sparc/ultrasp6.c (__assert, HSRate): Declare.
	* gcc.target/sparc/ultrasp8.c (__malloc_lock, __malloc_unlock):
	Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216576 138bc75d-0d04-0410-961f-82ee72b054a4
Fix gnu11 fallout on SPARC

	* include/gc.h [(sparc || __sparc) && sun] (GC_INIT): Remove
	comment and definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216577 138bc75d-0d04-0410-961f-82ee72b054a4