re PR sanitizer/66343 ("Error: .Lubsan_type3 already defined" with UBSan and precompi...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Oct 2016 19:04:39 +0000 (21:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Oct 2016 19:04:39 +0000 (21:04 +0200)
commit2e69f143e34f5c82caf1072f5a34784237b9f0a2
tree95ac17961ff15889a5a6b03662531a2b2ece6b74
parent875825211ba723311fa12b2c8aaa7c808bfa972f
re PR sanitizer/66343 ("Error: .Lubsan_type3 already defined" with UBSan and precompiled headers)

PR sanitizer/66343
* ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
(ubsan_instrument_float_cast): And not here.

* c-ubsan.c (ubsan_instrument_return): Don't call
initialize_sanitizer_builtins here.

* gcc.dg/pch/pr66343-3.c: New test.
* gcc.dg/pch/pr66343-3.hs: New file.

From-SVN: r240804
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-ubsan.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pch/pr66343-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pch/pr66343-3.hs [new file with mode: 0644]
gcc/ubsan.c