diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-27 09:28:45 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-27 09:28:45 +0000 |
| commit | 9366434c4411d7e5cfc8d85c3a18d2487b030178 (patch) | |
| tree | b06cc8f8944057cfd57dcd5faf93040dd75dae74 /gcc/tree-outof-ssa.c | |
| parent | 6e0003e71d0b7f3ce8c081e04525dd929c19a77c (diff) | |
| download | ppe42-gcc-9366434c4411d7e5cfc8d85c3a18d2487b030178.tar.gz ppe42-gcc-9366434c4411d7e5cfc8d85c3a18d2487b030178.zip | |
PR tree-opt/14329
* tree.h (struct tree_decl): Add debug_expr_is_from.
(DECL_DEBUG_EXPR_IS_FROM): New.
(DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
* dwarf2out.c (dwarf2out_var_location): Update to match.
* tree-outof-ssa.c (create_temp): Likewise.
* var-tracking.c (track_expr_p): Likewise.
* tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
* c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
* toplev.c (default_tree_printer): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-outof-ssa.c')
| -rw-r--r-- | gcc/tree-outof-ssa.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 430e8cae58a..65c74d310a4 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -157,10 +157,16 @@ create_temp (tree t) name = "temp"; tmp = create_tmp_var (type, name); - if (DECL_DEBUG_ALIAS_OF (t)) - DECL_DEBUG_ALIAS_OF (tmp) = DECL_DEBUG_ALIAS_OF (t); + if (DECL_DEBUG_EXPR (t) && DECL_DEBUG_EXPR_IS_FROM (t)) + { + DECL_DEBUG_EXPR (tmp) = DECL_DEBUG_EXPR (t); + DECL_DEBUG_EXPR_IS_FROM (tmp) = 1; + } else if (!DECL_IGNORED_P (t)) - DECL_DEBUG_ALIAS_OF (tmp) = t; + { + DECL_DEBUG_EXPR (tmp) = t; + DECL_DEBUG_EXPR_IS_FROM (tmp) = 1; + } DECL_ARTIFICIAL (tmp) = DECL_ARTIFICIAL (t); DECL_IGNORED_P (tmp) = DECL_IGNORED_P (t); add_referenced_tmp_var (tmp); |

