From: Uros Bizjak Date: Wed, 20 Feb 2019 15:23:47 +0000 (+0100) Subject: revert: re PR target/89397 (ICE in build_call_expr_loc_array at gcc/tree.c:11563... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0024731fda49ceb4bbe1d79a0cbb9483ad1e3015;p=gcc.git revert: re PR target/89397 (ICE in build_call_expr_loc_array at gcc/tree.c:11563 since r229082) Revert: PR target/89397 * config/i386/i386.c (ix86_option_override_internal): Set opts->x_ix86_fpmath to FPMATH_387 when SSE is disabled. gcc/testsuite/ PR target/89397 * gcc.target/i386/pr89397.c: New test. From-SVN: r269040 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b544e089e57..13580de7525 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -16,12 +16,6 @@ * config/gcn/gcn.c (print_operand): Fix typo. -2019-02-19 H.J. Lu - - PR target/89397 - * config/i386/i386.c (ix86_option_override_internal): Set - opts->x_ix86_fpmath to FPMATH_387 when SSE is disabled. - 2019-02-19 Richard Biener PR middle-end/88074 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index bed17330fa8..591a7cdccdc 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4310,9 +4310,10 @@ ix86_option_override_internal (bool main_args_p, if (!TARGET_SSE_P (opts->x_ix86_isa_flags)) { if (TARGET_80387_P (opts->x_target_flags)) - warning (0, "SSE instruction set disabled, using 387 arithmetics"); - /* NB: 387 codegen is guarded by TARGET_80387. */ - opts->x_ix86_fpmath = FPMATH_387; + { + warning (0, "SSE instruction set disabled, using 387 arithmetics"); + opts->x_ix86_fpmath = FPMATH_387; + } } else if ((opts->x_ix86_fpmath & FPMATH_387) && !TARGET_80387_P (opts->x_target_flags)) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3b415cd2564..d7240090c03 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -28,11 +28,6 @@ * c-c++-common/goacc/asyncwait-5.c: Remove XFAILs. * gfortran.dg/goacc/asyncwait-5.f: Likewise. -2019-02-19 H.J. Lu - - PR target/89397 - * gcc.target/i386/pr89397.c: New test. - 2019-02-19 Richard Biener PR middle-end/88074 diff --git a/gcc/testsuite/gcc.target/i386/pr89397.c b/gcc/testsuite/gcc.target/i386/pr89397.c deleted file mode 100644 index 42afa6c5247..00000000000 --- a/gcc/testsuite/gcc.target/i386/pr89397.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-mfpmath=sse,387 -msoft-float -mno-sse" } */ - -_Atomic double a; -int b; - -void -foo (void) -{ - a += b; /* { dg-error "SSE register return with SSE disabled" "" { target { ! ia32 } } } */ -}