]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Use noipa attribute instead of noinline, noclone
authorJakub Jelinek <jakub@redhat.com>
Wed, 16 Jun 2021 11:10:48 +0000 (13:10 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 10 May 2022 08:14:24 +0000 (10:14 +0200)
commitc5efca34f357db43a814748a5ee4f58fd10d193e
treecdd67ae24a6d075ff30cce0ee1fa06d5329e862e
parent5bcb1a2c000762240eefe6ac5b8e88768eaf26f7
testsuite: Use noipa attribute instead of noinline, noclone

I've noticed this test now on various arches sometimes FAILs, sometimes
PASSes (the line 12 test in particular).

The problem is that a = 0; initialization in the caller no longer happens
before the f(&a) call as what the argument points to is only used in
debug info.

Making the function noipa forces the caller to initialize it and still
tests what the test wants to test, namely that we don't consider *p as
valid location for the c variable at line 18 (after it has been overwritten
with *p = 1;).

2021-06-16  Jakub Jelinek  <jakub@redhat.com>

* gcc.dg/guality/pr49888.c (f): Use noipa attribute instead of
noinline, noclone.

(cherry picked from commit a490b1dc0b3c26bff2ee00ac0da2d606d2009e3a)
gcc/testsuite/gcc.dg/guality/pr49888.c