]> gcc.gnu.org Git - gcc.git/commit
openmp: For default(none) ignore variables created by ubsan_create_data [PR64888]
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Oct 2021 08:27:44 +0000 (10:27 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 11 May 2022 05:58:30 +0000 (07:58 +0200)
commita76e866211798da138c51abea390bcd605b6da02
tree958f24a5b6439192f75cc5e99b631606189d392c
parent662de049d63759b731bed62f9df60edb47120658
openmp: For default(none) ignore variables created by ubsan_create_data [PR64888]

We weren't ignoring the ubsan variables created by c-ubsan.c before gimplification
(others are added later).  One way to fix this would be to introduce further
UBSAN_ internal functions and lower it later (sanopt pass) like other ifns,
this patch instead recognizes those magic vars by name/name of type and DECL_ARTIFICIAL
and TYPE_ARTIFICIAL.

2021-10-21  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/64888
gcc/c-family/
* c-omp.c (c_omp_predefined_variable): Return true also for
ubsan_create_data created artificial variables.
gcc/testsuite/
* c-c++-common/ubsan/pr64888.c: New test.

(cherry picked from commit 40dd9d839e52f679d8eabc1c5ca0ca17a5ccfd14)
gcc/c-family/c-omp.c
gcc/testsuite/c-c++-common/ubsan/pr64888.c [new file with mode: 0644]
This page took 0.057172 seconds and 6 git commands to generate.