aboutsummaryrefslogtreecommitdiff
path: root/gcc/ubsan.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-01-01 12:55:02 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-01-01 12:55:02 +0100
commit10dff63f98807e6b7f65c9c3b9f69623f8f619b3 (patch)
treeaff084c72cda3df21bab38e205a8c609723488c2 /gcc/ubsan.c
parent3c5fc1380c6f882e187df36e5ea50076d70baa5c (diff)
downloadgcc-10dff63f98807e6b7f65c9c3b9f69623f8f619b3.zip
gcc-10dff63f98807e6b7f65c9c3b9f69623f8f619b3.tar.gz
gcc-10dff63f98807e6b7f65c9c3b9f69623f8f619b3.tar.bz2
re PR sanitizer/69055 (Internal compiler error -fsanitize=float-cast-overflow)
PR sanitizer/69055 * ubsan.c (ubsan_instrument_float_cast): Call initialize_sanitizer_builtins. * gfortran.dg/pr69055.f90: New test. From-SVN: r232024
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r--gcc/ubsan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c
index 6fc6233..522967a 100644
--- a/gcc/ubsan.c
+++ b/gcc/ubsan.c
@@ -1588,6 +1588,7 @@ ubsan_instrument_float_cast (location_t loc, tree type, tree expr, tree arg)
{
location_t *loc_ptr = NULL;
unsigned num_locations = 0;
+ initialize_sanitizer_builtins ();
/* Figure out if we can propagate location to ubsan_data and use new
style handlers in libubsan. */
if (ubsan_use_new_style_p (loc))