ubsan.h (ubsan_get_source_location): New prototype.
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Oct 2014 07:44:13 +0000 (09:44 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Oct 2014 07:44:13 +0000 (09:44 +0200)
commit21a82048f77104a3d76358f0ae97625312080573
tree4c82e3f6bdcbf33d5ea0a345a45f463114a05b55
parent1928ec50dff51203757954ac17e722d1c7daf07e
ubsan.h (ubsan_get_source_location): New prototype.

* ubsan.h (ubsan_get_source_location): New prototype.
* ubsan.c (ubsan_source_location_type): New variable.
Function renamed to ...
(ubsan_get_source_location_type): ... this.  Cache
return value in ubsan_source_location_type variable.
(ubsan_source_location, ubsan_create_data): Use
ubsan_get_source_location_type instead of
ubsan_source_location_type.
* asan.c (asan_protect_global): Don't protect globals
with ubsan_get_source_location_type () type.
(asan_add_global): Provide global decl location info
if possible.

From-SVN: r215916
gcc/asan.c
gcc/ubsan.c
gcc/ubsan.h