[Bug target/89175] New: gcc's conversion code from double to unsigned int handles overflows incorrectly on x86-64

2019-02-03 Thread david.monni...@univ-grenoble-alpes.fr
IRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: david.monni...@univ-grenoble-alpes.fr Target Milestone: --- $ gcc-8 --version gcc-8 (Ubuntu 8.2.0-1ubuntu2~18.04) 8.2.0 Compile the following: uns

[Bug target/89175] gcc's conversion code from double to unsigned int handles overflows incorrectly on x86-64

2019-02-04 Thread david.monni...@univ-grenoble-alpes.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89175 --- Comment #2 from david.monni...@univ-grenoble-alpes.fr --- How about allowing this optimization if some -fsomething option is set, which would be set if -ffast-math is set? Many float optimizations that do not abide by ISO C are not active