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

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

https://gcc.gnu.org/g:5d103763b9bc6a998dd4a453861663b229d7a24a

commit r11-5705-g5d103763b9bc6a998dd4a453861663b229d7a24a
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Thu Dec 3 15:52:15 2020 +0100

    Fix PR middle-end/98082

    this fixes an ICE introduced by the fix for PR middle-end/97078 where
    use_register_for_decl was changed to return true at -O0 for a parameter
    of a thunk.  It turns out that we need to do the same for a result in
    this case.

    gcc/ChangeLog:
            PR middle-end/98082
            * function.c (use_register_for_decl): Also return true for a result
            if cfun->tail_call_marked is true.

    gcc/testsuite/ChangeLog:
            * g++.dg/cpp2a/pr98082.C: New test.

Reply via email to