Commit 10dff63f by Jakub Jelinek Committed by Jakub Jelinek

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
parent 3c5fc138
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).
......
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.
......
! { 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
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment