aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-12-05 21:49:38 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2011-12-05 21:49:38 +0100
commit156030d35f7c8edca2f7b801212a0f201b4369bc (patch)
tree2b0dab5f75b3bf875ca8d4fcecdb1a4ec85163ec /gcc/c-decl.c
parenta9eba00e1b73fe6ac5f6d3dcad4a015a4e8eb4d4 (diff)
downloadgcc-156030d35f7c8edca2f7b801212a0f201b4369bc.zip
gcc-156030d35f7c8edca2f7b801212a0f201b4369bc.tar.gz
gcc-156030d35f7c8edca2f7b801212a0f201b4369bc.tar.bz2
re PR c/51339 (ICE: in convert_move, at expr.c:326 with -fopenmp and parallel for)
PR c/51339 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call relayout_decl instead of layout_decl. * gcc.dg/gomp/pr51339.c: New test. From-SVN: r182026
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 44358a8..4338fdf 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -719,7 +719,7 @@ c_finish_incomplete_decl (tree decl)
complete_array_type (&TREE_TYPE (decl), NULL_TREE, true);
- layout_decl (decl, 0);
+ relayout_decl (decl);
}
}
}
@@ -4311,7 +4311,7 @@ finish_decl (tree decl, location_t init_loc, tree init,
if (DECL_INITIAL (decl))
TREE_TYPE (DECL_INITIAL (decl)) = type;
- layout_decl (decl, 0);
+ relayout_decl (decl);
}
if (TREE_CODE (decl) == VAR_DECL)