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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>:

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

commit r12-2826-gc86c95edd165d674614516cda0b1fcb6616c1096
Author: Andrew MacLeod <amacl...@redhat.com>
Date:   Mon Aug 9 15:53:42 2021 -0400

    Ensure toupper and tolower follow the expected pattern.

    If the parameter is not compatible with the LHS, assume this is not really
a
    builtin function to avoid a trap.

            gcc/
            PR tree-optimization/101741
            * gimple-range-fold.cc (fold_using_range::range_of_builtin_call):
Check
            type of parameter for toupper/tolower.

            gcc/testsuite/
            * gcc.dg/pr101741.c: New.

Reply via email to