bootstrap: Fix building with GCC 4.2 [PR89494]
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Apr 2020 08:15:18 +0000 (10:15 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 16 Apr 2020 08:15:18 +0000 (10:15 +0200)
commit42e20fd25d3651349d892d8af864dc576c09019c
tree6cd4d332e0015e588afac756b2cfcf4a9f4e7b82
parent2ca17e0a89ff6c37e17851a5bd7b0a03ee8de535
bootstrap: Fix building with GCC 4.2 [PR89494]

GCC 4.2 (but I think not the latest tip of GCC 4.2 branch) has broken value
initialization, see PR33916.  The following patch provides a workaround for
that.  Tested with GCC 4.2 on a reduced testcase I've distilled from the
assign_param_data_one class which has been miscompiled the same.

2020-04-16  Jakub Jelinek  <jakub@redhat.com>

PR bootstrap/89494
* function.c (assign_parm_find_data_types): Add workaround for
BROKEN_VALUE_INITIALIZATION compilers.
gcc/ChangeLog
gcc/function.c