[Bug sanitizer/66343] "Error: .Lubsan_type3 already defined" with UBSan and precompiled headers
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 30 07:40:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66343
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:34:46 2017
New Revision: 248616
URL: https://gcc.gnu.org/viewcvs?rev=248616&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-5-branch/gcc/testsuite/gcc.dg/pch/pr66343-1.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pch/pr66343-1.hs
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pch/pr66343-2.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pch/pr66343-2.hs
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/ubsan.c
More information about the Gcc-bugs
mailing list