Fill bitregion_{start,end} in store_constructor (PR tree-optimization/78428)
authorMartin Liska <mliska@suse.cz>
Tue, 13 Dec 2016 15:26:14 +0000 (16:26 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 13 Dec 2016 15:26:14 +0000 (15:26 +0000)
commit437df9f9d154c9328e52d967fbecdf72148566e1
tree20c6456f8225fb48fa74e05f954acf51c911049e
parente4e659b947e64c015681361cbae571bf130d4c17
Fill bitregion_{start,end} in store_constructor (PR tree-optimization/78428)

* expr.c (store_constructor_field): Add new arguments to the
function.
(store_constructor): Set up bitregion_end and add
gcc_unreachable to fields that have either non-constant size
or (and) offset.
* gcc.dg/tree-ssa/pr78428.c: New test.

From-SVN: r243610
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr78428.c [new file with mode: 0644]