https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63866

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Nov 18 14:55:44 2014
New Revision: 217718

URL: https://gcc.gnu.org/viewcvs?rev=217718&root=gcc&view=rev
Log:
    PR sanitizer/63866
    * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
    put it into TYPE_NAME and TYPE_STUB_DECL.
    * ubsan.c (ubsan_type_descriptor_type): New variable.
    Function renamed to ...
    (ubsan_get_type_descriptor_type): ... this.  Cache
    return value in ubsan_type_descriptor_type variable.
    Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
    TYPE_NAME and TYPE_STUB_DECL.
    (ubsan_get_source_location_type): Create a TYPE_DECL for
    "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
    (ubsan_type_descriptor, ubsan_create_data): Call
    ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
    Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.

    * c-c++-common/ubsan/pr63866.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr63866.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/asan.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c

Reply via email to