Re: [PATCH] Fix __builtin_clear_padding for empty struct.

2020-12-02 Thread Martin Liška
On 12/2/20 11:11 AM, Jakub Jelinek wrote: On Wed, Dec 02, 2020 at 10:25:32AM +0100, Martin Liška wrote: It's a simple fix of a division by zero. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: PR c/98087

Re: [PATCH] Fix __builtin_clear_padding for empty struct.

2020-12-02 Thread Jakub Jelinek via Gcc-patches
On Wed, Dec 02, 2020 at 10:25:32AM +0100, Martin Liška wrote: > It's a simple fix of a division by zero. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > > gcc/ChangeLog: > > PR c/98087 > * gimple-fold.c (clea

[PATCH] Fix __builtin_clear_padding for empty struct.

2020-12-02 Thread Martin Liška
It's a simple fix of a division by zero. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: PR c/98087 * gimple-fold.c (clear_padding_type): Do not divide by zero. gcc/testsuite/ChangeLog: PR c/9