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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sergei Trofimovich <sly...@gcc.gnu.org>:

https://gcc.gnu.org/g:11056ab7687f7156846e93557c9171b77713bd7e

commit r11-7022-g11056ab7687f7156846e93557c9171b77713bd7e
Author: Sergei Trofimovich <siarh...@google.com>
Date:   Mon Jan 11 18:05:57 2021 +0000

    tree-optimization/98499 - fix modref analysis on RVO statements

    Before the change RVO gimple statements were treated as local
    stores by modres analysis. But in practice RVO escapes target.

    2021-02-01  Sergei Trofimovich  <siarh...@google.com>

    gcc/ChangeLog:

            PR tree-optimization/98499
            * ipa-modref.c (analyze_ssa_name_flags): treat RVO
            conservatively and assume all possible side-effects.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/98499
            * g++.dg/pr98499.C: new test.

Reply via email to