[Bug c/82349] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'

2017-09-28 Thread marc.pres at gmx dot net
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: marc.pres at gmx dot net Target Milestone: --- Given this code snippet: #include #include int main(void) { int denom=0; printf("%d %d %

[Bug c/82350] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'

2017-09-28 Thread marc.pres at gmx dot net
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: marc.pres at gmx dot net Target Milestone: --- Given this code snippet: #include #include int main(void) { int denom=0; printf("%d %d %

[Bug c/82351] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'

2017-09-28 Thread marc.pres at gmx dot net
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: marc.pres at gmx dot net Target Milestone: --- Given this code snippet: #include #include int main(void) { int denom=0; printf("%d %d %

[Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'

2017-09-28 Thread marc.pres at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82349 --- Comment #4 from Marcello Presulli --- Thats clear, but why are the 2 terms different each. If so, they should output the same, because what would be the difference between 1.0/denom and 1.0/0 in case of fast-math ?