http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48031
--- Comment #19 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 14:02:27 UTC --- Author: rguenth Date: Mon Apr 18 14:02:22 2011 New Revision: 172647 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172647 Log: 2011-04-18 Richard Guenther <rguent...@suse.de> Backported from 4.6 branch 2011-03-11 Jakub Jelinek <ja...@redhat.com> PR c++/48035 * init.c (build_zero_init_1): Extracted from build_zero_init. Add FIELD_SIZE argument, if non-NULL and field bit_position as not smaller than that, don't add that field's initializer. Pass DECL_SIZE as last argument to build_zero_init_1 for DECL_FIELD_IS_BASE fields. (build_zero_init): Use build_zero_init_1. * g++.dg/inherit/virtual8.C: New test. 2011-03-05 Zdenek Dvorak <o...@ucw.cz> PR rtl-optimization/47899 * cfgloopmanip.c (fix_bb_placements): Fix first argument to flow_loop_nested_p when moving the loop upward. * gcc.dg/pr47899.c: New test. 2011-03-15 Richard Guenther <rguent...@suse.de> PR middle-end/48031 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized or variable-indexed array accesses when in gimple form. Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/cfgloopmanip.c branches/gcc-4_5-branch/gcc/cp/ChangeLog branches/gcc-4_5-branch/gcc/cp/init.c branches/gcc-4_5-branch/gcc/fold-const.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog