diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0289-PR-bootstrap-49086.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0289-PR-bootstrap-49086.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0289-PR-bootstrap-49086.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0289-PR-bootstrap-49086.patch new file mode 100644 index 0000000000..53e107b5ec --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0289-PR-bootstrap-49086.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 29870e6f38fef098cbd13a59969e5a5f0ad77985 Mon Sep 17 00:00:00 2001 | ||
2 | From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Fri, 20 May 2011 18:23:36 +0000 | ||
4 | Subject: [PATCH] PR bootstrap/49086 | ||
5 | * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL | ||
6 | for PHI args that are SSA_NAME_IS_DEFAULT_DEF. | ||
7 | |||
8 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173968 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
9 | |||
10 | index 6ff6f81..910e3b0 100644 | ||
11 | --- a/gcc/gimple-fold.c | ||
12 | +++ b/gcc/gimple-fold.c | ||
13 | @@ -2183,7 +2183,8 @@ and_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, | ||
14 | code2, op2a, op2b)) | ||
15 | return NULL_TREE; | ||
16 | } | ||
17 | - else if (TREE_CODE (arg) == SSA_NAME) | ||
18 | + else if (TREE_CODE (arg) == SSA_NAME | ||
19 | + && !SSA_NAME_IS_DEFAULT_DEF (arg)) | ||
20 | { | ||
21 | tree temp; | ||
22 | gimple def_stmt = SSA_NAME_DEF_STMT (arg); | ||
23 | @@ -2644,7 +2645,8 @@ or_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, | ||
24 | code2, op2a, op2b)) | ||
25 | return NULL_TREE; | ||
26 | } | ||
27 | - else if (TREE_CODE (arg) == SSA_NAME) | ||
28 | + else if (TREE_CODE (arg) == SSA_NAME | ||
29 | + && !SSA_NAME_IS_DEFAULT_DEF (arg)) | ||
30 | { | ||
31 | tree temp; | ||
32 | gimple def_stmt = SSA_NAME_DEF_STMT (arg); | ||
33 | -- | ||
34 | 1.7.0.4 | ||
35 | |||