This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r248688 - in /trunk/gcc: ChangeLog gimplify.c
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 30 May 2017 15:34:00 -0000
- Subject: r248688 - in /trunk/gcc: ChangeLog gimplify.c
Author: pmderodat
Date: Tue May 30 15:34:00 2017
New Revision: 248688
URL: https://gcc.gnu.org/viewcvs?rev=248688&root=gcc&view=rev
Log:
gimplify_modify_expr: avoid DECL_DEBUG_EXPR links across functions
An upcoming patch exposes a bug in gimplify_modify_expr. There, we try
not to create DECL_DEBUG_EXPR links across functions, however we don't
check that *FROM_P actually belongs to the current function before
modifying it. This patch fixes this oversight.
gcc/
* gimplify.c (gimplify_modify_expr): Don't create a
DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
function.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c