PR sanitizer/69055
* ubsan.c (ubsan_instrument_float_cast): Call
initialize_sanitizer_builtins.
* gfortran.dg/pr69055.f90: New test.
From-SVN: r232024
2016-01-01 Jakub Jelinek <jakub@redhat.com>
+ PR sanitizer/69055
+ * ubsan.c (ubsan_instrument_float_cast): Call
+ initialize_sanitizer_builtins.
+
PR target/69015
* ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
\f
2016-01-01 Jakub Jelinek <jakub@redhat.com>
+ PR sanitizer/69055
+ * gfortran.dg/pr69055.f90: New test.
+
PR target/69015
* gcc.dg/pr69015.c: New test.
\f
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fsanitize=float-cast-overflow" }
+
+subroutine pr69055
+ implicit none
+ integer :: n
+ real(8) :: b
+ b = huge(1.0D0)
+ n = b
+end subroutine pr69055
{
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))