From ba2a82273e96d1785994a9d596ca01018e5b6a70 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 15 Sep 2017 14:13:21 +0200 Subject: [PATCH] Backport r250336 2017-09-15 Martin Liska Backport from mainline 2017-07-19 Martin Liska PR sanitizer/63361 * c-c++-common/ubsan/float-cast-overflow-1.c: Add either -ffloat-store or -mieee for targets that need it. From-SVN: r252809 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 466a6e2581c1..925cb4ed7df7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-09-15 Martin Liska + + Backport from mainline + 2017-07-19 Martin Liska + + PR sanitizer/63361 + * c-c++-common/ubsan/float-cast-overflow-1.c: Add either + -ffloat-store or -mieee for targets that need it. + 2017-09-15 Martin Liska Backport from mainline diff --git a/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c b/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c index cd6941c9d30e..aae88aa31800 100644 --- a/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c +++ b/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c @@ -1,6 +1,7 @@ /* { dg-do run { target { lp64 || ilp32 } } } */ /* { dg-options "-fsanitize=float-cast-overflow" } */ -/* { dg-additional-options "-msse2 -mfpmath=sse" { target { sse2_runtime && ia32 } } } */ +/* { dg-additional-options "-ffloat-store" { target { ia32 } } } */ +/* { dg-additional-options "-mieee" { target { { alpha*-*-* } || { sh*-*-* } } } } */ #include #include "float-cast.h" -- 2.47.2