]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/60226 (ICE initializing array of elements with too large alignment)
authorMarek Polacek <polacek@redhat.com>
Tue, 8 Jul 2014 05:38:12 +0000 (05:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 8 Jul 2014 05:38:12 +0000 (05:38 +0000)
commit605f12f4dcb80940461150cfa9427a12653d8ed3
treee4f77420db83c7c0c601b3cce97560e8b1722155
parent09aa4b1fac1f92c5d64bb21d5e51751786831186
re PR middle-end/60226 (ICE initializing array of elements with too large alignment)

PR c/60226
* fold-const.c (round_up_loc): Change the parameter type.
Remove assert.
* fold-const.h (round_up_loc): Adjust declaration.
* stor-layout.c (finalize_record_size): Check for too large types.

* c-c++-common/pr60226.c: New test.

From-SVN: r212346
gcc/ChangeLog
gcc/fold-const.c
gcc/fold-const.h
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr60226.c [new file with mode: 0644]