]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: [multiple changes]
authorRichard Guenther <rguenther@suse.de>
Mon, 18 Apr 2011 14:02:22 +0000 (14:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 18 Apr 2011 14:02:22 +0000 (14:02 +0000)
commitc2e15923ba6d72d00ae09af0ba4a47d23ab93291
treefe5123916c176a77f520df228bb36a03e119014f
parent4b130eec513196deafbb5fcd7771cb131c940814
backport: [multiple changes]

2011-04-18  Richard Guenther  <rguenther@suse.de>

Backported from 4.6 branch
2011-03-11  Jakub Jelinek  <jakub@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  <ook@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  <rguenther@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.

From-SVN: r172647
gcc/ChangeLog
gcc/cfgloopmanip.c
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/fold-const.c
gcc/testsuite/ChangeLog