aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-diagnostic.c
diff options
context:
space:
mode:
authorPierre-Marie de Rodat <derodat@adacore.com>2017-05-30 15:34:00 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2017-05-30 15:34:00 +0000
commit0a37d40c9ceee7b502a06214037346884debf4e6 (patch)
treef1761d3932477acc359771d0b1794dacbd2457af /gcc/tree-diagnostic.c
parente2f353338584c197e7d62370821fe48f76a52ce8 (diff)
downloadgcc-0a37d40c9ceee7b502a06214037346884debf4e6.zip
gcc-0a37d40c9ceee7b502a06214037346884debf4e6.tar.gz
gcc-0a37d40c9ceee7b502a06214037346884debf4e6.tar.bz2
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. From-SVN: r248688
Diffstat (limited to 'gcc/tree-diagnostic.c')
0 files changed, 0 insertions, 0 deletions