[Bug sanitizer/66343] "Error: .Lubsan_type3 already defined" with UBSan and precompiled headers
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 22:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66343
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 7 22:39:29 2016
New Revision: 243391
URL: https://gcc.gnu.org/viewcvs?rev=243391&root=gcc&view=rev
Log:
Backported from mainline
2016-10-05 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/66343
* ubsan.c (ubsan_ids): New GTY(()) array.
(ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
instead of static local counters.
* gcc.dg/pch/pr66343-1.c: New test.
* gcc.dg/pch/pr66343-1.hs: New file.
* gcc.dg/pch/pr66343-2.c: New test.
* gcc.dg/pch/pr66343-2.hs: New file.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pch/pr66343-1.c
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pch/pr66343-1.hs
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pch/pr66343-2.c
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pch/pr66343-2.hs
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/ubsan.c
More information about the Gcc-bugs
mailing list