[Bug tree-optimization/126536] [13/14/15/16/17 Regression] ICE with -funswitch-loops

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 1 17:05:57 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126536

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:b524a89412c6b2e221ec60e052d54de0134caa4a

commit r17-3826-gb524a89412c6b2e221ec60e052d54de0134caa4a
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Tue Sep 1 19:00:57 2026 +0200

    Fix sloppy PR126536 test

    This test failed with

    FAIL: gcc.dg/pr126536-1.c (test for excess errors)
    Excess errors:
    gcc.dg/pr126536-1.c:37:5: warning: overflow in conversion from 'long int'
to 'int' changes value from '100000' to '-31072' [-Woverflow]
    gcc.dg/pr126536-1.c:37:5: warning: empty range specified
    gcc.dg/pr126536-1.c:39:5: warning: overflow in conversion from 'long int'
to 'int' changes value from '200000' to '3392' [-Woverflow]
    FAIL: gcc.dg/pr126536-1.c execution test

    As it's obviously requiring int32plus in the argument of f.
    Hence use __INT32_TYPE__ instead of int.

    gcc/testsuite/
            PR testsuite/126536
            * gcc.dg/pr126536-1.c (f): Pass a as __INT32_TYPE__.


More information about the Gcc-bugs mailing list