[Bug tree-optimization/96369] [8/9/10/11 Regression] Wrong evaluation order of || operator
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 31 00:21:55 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96369
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Summary|Wrong evaluation order of |[8/9/10/11 Regression]
||| operator |Wrong evaluation order of
| ||| operator
--- Comment #2 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Actually it appears the wrong code is being introduced somewhere in
fold_range_test (I didn't trace it further than that); the only front-end
involvement is that the front end does folding as part of conversions at
various points.
Testing with old compilers suggests this appeared between 4.8.1 and 4.8.3
(quite possibly through some backported change perturbing the exact sequence of
calls to folding functions rather than the actual underlying cause being
introduced in whatever backport).
More information about the Gcc-bugs
mailing list