aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-10-25 13:27:32 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-10-25 06:27:32 -0700
commit4c7c0c70e3aecf557e968d3d0941e21f1f875f83 (patch)
tree3ea37435d5af3d291b57b64a93db96a445576a2b /gcc/c-decl.c
parentd87bdb13309e3f691fe0570c16cdcbdb6991d55b (diff)
downloadgcc-4c7c0c70e3aecf557e968d3d0941e21f1f875f83.zip
gcc-4c7c0c70e3aecf557e968d3d0941e21f1f875f83.tar.gz
gcc-4c7c0c70e3aecf557e968d3d0941e21f1f875f83.tar.bz2
re PR middle-end/17407 (ICE in int_mode_for_mode)
2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17407 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call layout_type as it is already done by build_array_type. * tree.c (build_array_type): Layout the type even 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR c++/18121 * decl.c (grokdeclarator) <case cdk_array>: Remove the call layout_type as it is already done by create_array_type_for_decl. 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17407 * gcc.c-torture/compile/pr17407.c: New test. PR c++/18121 * g++.dg/template/array8.C: New test. From-SVN: r89533
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index a2443ec..08f7909 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4133,14 +4133,9 @@ grokdeclarator (const struct c_declarator *declarator,
zero. */
if (size && integer_zerop (size))
{
- layout_type (type);
TYPE_SIZE (type) = bitsize_zero_node;
TYPE_SIZE_UNIT (type) = size_zero_node;
}
- else if (declarator->kind == cdk_pointer)
- /* We can never complete an array type which is the
- target of a pointer, so go ahead and lay it out. */
- layout_type (type);
if (decl_context != PARM
&& (array_ptr_quals != TYPE_UNQUALIFIED