[Bug tree-optimization/126568] [14/15/16/17 Regression] Missed handling of non-call exceptions in factor_out_conditional_operation

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sun, 02 Aug 2026 00:06:07 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126568

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[17 Regression] Missed      |[14/15/16/17 Regression]
                   |handling of non-call        |Missed handling of non-call
                   |exceptions in               |exceptions in
                   |factor_out_conditional_oper |factor_out_conditional_oper
                   |ation                       |ation
      Known to work|                            |13.4.0
      Known to fail|                            |14.1.0
   Target Milestone|17.0                        |14.5

--- Comment #5 from Drea Pinski <pinskia at gcc dot gnu.org> ---
This is older than supporting binary. See the attached testcase which fails
since GCC 14. trapv there is required though due to needing an unary operation
to cause the trap.