]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/85704 (cc1 run out of memory when it compile)
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Aug 2018 09:10:31 +0000 (11:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Aug 2018 09:10:31 +0000 (11:10 +0200)
commit5922dcb5cc82f48862cd42bd84e3c85733cac0ce
tree5da99f1c888c027956275da6051673c2ce41f66f
parentd1b05d128dca0009642908dd2fb490c1ee27e72e
re PR c/85704 (cc1 run out of memory when it compile)

PR c/85704
* c-typeck.c (init_field_decl_cmp): New function.
(output_pending_init_elements): Use it for field comparisons
instead of pure bit_position comparisons.

* gcc.c-torture/compile/pr85704.c: New test.

From-SVN: r263198
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr85704.c [new file with mode: 0644]