[Bug target/90867] [8 Regression] Multiplication or typecast of integer and double always zero when...

2019-11-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90867

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #11 from Jakub Jelinek  ---
Fixed for 8.4+ too.

[Bug target/90867] [8 Regression] Multiplication or typecast of integer and double always zero when...

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90867

--- Comment #10 from Jakub Jelinek  ---
Author: jakub
Date: Thu Nov 21 17:20:04 2019
New Revision: 278585

URL: https://gcc.gnu.org/viewcvs?rev=278585&root=gcc&view=rev
Log:
Backported from mainline
2019-11-20  Jakub Jelinek  

PR target/90867
* config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
clear opts->x_ix86_isa_flags{,2} here...
(ix86_valid_target_attribute_inner_p): ... but here when seeing
arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.

* gcc.target/i386/pr90867.c: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/gcc.target/i386/pr90867.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/config/i386/i386.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug target/90867] [8 Regression] Multiplication or typecast of integer and double always zero when...

2019-11-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90867

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[8/9 Regression]|[8 Regression]
   |Multiplication or typecast  |Multiplication or typecast
   |of integer and double   |of integer and double
   |always zero when... |always zero when...

--- Comment #9 from Jakub Jelinek  ---
Fixed for 9.3+ too.