[PATCH 2/5] Convert Walloca pass to RANGE_QUERY(cfun).

Aldy Hernandez aldyh@redhat.com
Thu May 27 08:34:19 GMT 2021


On x86-32 warn_ptrdiff_anti_range_add() and warn_int_anti_range()
degrade to the same function so ICF is folding the latter into a call
into the former.  This is causing no warnings to be emitted for
warn_int_anti_range.

Fixed by passing -fno-ipa-icf to the test.

Long term, we really should be finding a way to run these warning
passes earlier :-/.

Pushed.

On Thu, May 27, 2021 at 9:39 AM Christophe Lyon
<christophe.lyon@linaro.org> wrote:
>
> Hi,
>
> On Tue, 25 May 2021 at 18:17, Aldy Hernandez via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
> >
> > Adjustments per discussion.
> >
> > OK pending tests?
> >
>
> The xfail removal causes failures on 32 bits platforms (eg arm, or
> aarch64 with -mabi=ilp32):
> FAIL: gcc.dg/Wstringop-overflow-55.c pr????? (test for warnings, line 86)
> FAIL: gcc.dg/Wstringop-overflow-55.c pr????? (test for warnings, line 94)
>
>
> Christophe
>
> > Aldy
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Tweak-Wstringop-overflow-55.c-test.patch
Type: text/x-patch
Size: 1207 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210527/f100f4bb/attachment.bin>


More information about the Gcc-patches mailing list