diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-02 10:40:41 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-02 10:40:41 +0000 |
commit | a634a685a892b0ef270b2ce7454290f4d83cc715 (patch) | |
tree | 46788ae87e00f56ecc4ee43355d56869b303f7a9 /gcc/cfgexpand.c | |
parent | 52a88d12a0ae93c5e474f2c897876b0dc3f2e1e1 (diff) | |
download | gcc-a634a685a892b0ef270b2ce7454290f4d83cc715.tar.gz |
2011-12-02 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 181902 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@181903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 2a82b032f5d..e5a7a392eb4 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3903,6 +3903,11 @@ expand_gimple_basic_block (basic_block bb) rtx val; enum machine_mode mode; + if (TREE_CODE (var) != DEBUG_EXPR_DECL + && TREE_CODE (var) != LABEL_DECL + && !target_for_debug_bind (var)) + goto delink_debug_stmt; + if (gimple_debug_bind_has_value_p (stmt)) value = gimple_debug_bind_get_value (stmt); else @@ -3932,6 +3937,7 @@ expand_gimple_basic_block (basic_block bb) PAT_VAR_LOCATION_LOC (val) = (rtx)value; } + delink_debug_stmt: /* In order not to generate too many debug temporaries, we delink all uses of debug statements we already expanded. Therefore debug statements between definition and real |