https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103980
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Ryan from comment #8) > (In reply to Andrew Pinski from comment #7) > > It might be the case Wdouble-promotion is just useless on s390 if you > > configure your compiler with --enable-s390-excess-float-precision which was > > only added for GCC11, so basically between GCC 7 and GCC 10.x, the default > > was to promote all float to double for s390. > > It still seems odd that the warning is only produced when the -std flag is > set, and only when comparisons are made. -std enables -fexcess-precision=standard option.