diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0273-PR-tree-optimization-49000.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0273-PR-tree-optimization-49000.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0273-PR-tree-optimization-49000.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0273-PR-tree-optimization-49000.patch new file mode 100644 index 0000000000..6d146eca28 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0273-PR-tree-optimization-49000.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From f06cb0f7aea5a275c4ae4b35f19db407fa65a3f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Wed, 18 May 2011 09:29:46 +0000 | ||
4 | Subject: [PATCH] PR tree-optimization/49000 | ||
5 | * tree-ssa.c (execute_update_addresses_taken): Call | ||
6 | maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't | ||
7 | be rewritten and decl has been marked for renaming, reset | ||
8 | the debug stmt. | ||
9 | |||
10 | * gcc.dg/pr49000.c: New test. | ||
11 | |||
12 | |||
13 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173850 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
14 | |||
15 | index 12ceb8e..d3585ce 100644 | ||
16 | index 0455680..649f625 100644 | ||
17 | --- a/gcc/tree-ssa.c | ||
18 | +++ b/gcc/tree-ssa.c | ||
19 | @@ -2205,6 +2205,17 @@ execute_update_addresses_taken (void) | ||
20 | } | ||
21 | } | ||
22 | |||
23 | + else if (gimple_debug_bind_p (stmt) | ||
24 | + && gimple_debug_bind_has_value_p (stmt)) | ||
25 | + { | ||
26 | + tree *valuep = gimple_debug_bind_get_value_ptr (stmt); | ||
27 | + tree decl; | ||
28 | + maybe_rewrite_mem_ref_base (valuep); | ||
29 | + decl = non_rewritable_mem_ref_base (*valuep); | ||
30 | + if (decl && symbol_marked_for_renaming (decl)) | ||
31 | + gimple_debug_bind_reset_value (stmt); | ||
32 | + } | ||
33 | + | ||
34 | if (gimple_references_memory_p (stmt) | ||
35 | || is_gimple_debug (stmt)) | ||
36 | update_stmt (stmt); | ||
37 | -- | ||
38 | 1.7.0.4 | ||
39 | |||