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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

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

commit r11-9228-gae3227710c71ca693ee43c825f5d0d0fbd3c3773
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Sep 30 15:05:53 2021 +0200

    middle-end/102518 - avoid invalid GIMPLE during inlining

    When inlining we have to avoid mapping a non-lvalue parameter
    value into a context that prevents the parameter to be a register.
    Formerly the register were TREE_ADDRESSABLE but now it can be
    just DECL_NOT_GIMPLE_REG_P.

    2021-09-30  Richard Biener  <rguent...@suse.de>

            PR middle-end/102518
            * tree-inline.c (setup_one_parameter): Avoid substituting
            an invariant into contexts where a GIMPLE register is not valid.

            * gcc.dg/torture/pr102518.c: New testcase.
  • [Bug middle-end/102518] [11 Reg... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to