varasm.c (output_constructor_regular_field): Compute zero-based index with double...
authorRichard Guenther <rguenther@suse.de>
Mon, 2 May 2011 15:22:54 +0000 (15:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 2 May 2011 15:22:54 +0000 (15:22 +0000)
commite562bf36b644ab3403fc28a5e41bee94fcca1deb
treeaba2d31b13dea7131e7eb941ca9a452f462c9085
parent6bec6c98971cd984623fcdab094ded3912fb69af
varasm.c (output_constructor_regular_field): Compute zero-based index with double-ints.

2011-05-02  Richard Guenther  <rguenther@suse.de>

* varasm.c (output_constructor_regular_field): Compute zero-based
index with double-ints.  Make sure to ICE instead of producing
wrong code.
* cgraph.c (cgraph_add_thunk): Do not create new tree nodes
in asserts.  Properly use a signed type.

From-SVN: r173255
gcc/ChangeLog
gcc/cgraph.c
gcc/varasm.c