aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-14 04:36:34 +0000
committerRichard Stallman <rms@gnu.org>1993-05-14 04:36:34 +0000
commitf4e5900810f1818a0b60f7556d1caf1fe13998a7 (patch)
tree187c206b886de8d4a5aa6094a703491e608333ce
parent73737e867f5a4badb12aaecaecadecd5a7f0f27d (diff)
downloadgcc-f4e5900810f1818a0b60f7556d1caf1fe13998a7.zip
gcc-f4e5900810f1818a0b60f7556d1caf1fe13998a7.tar.gz
gcc-f4e5900810f1818a0b60f7556d1caf1fe13998a7.tar.bz2
(complete_array_type): Delete the code to call change_main_variant.
From-SVN: r4446
-rw-r--r--gcc/c-decl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 5fb9dd6..09d20ca 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3654,13 +3654,15 @@ complete_array_type (type, initial_value, do_default)
if (maxindex)
{
- tree main;
TYPE_DOMAIN (type) = build_index_type (maxindex);
if (!TREE_TYPE (maxindex))
TREE_TYPE (maxindex) = TYPE_DOMAIN (type);
+#if 0 /* I took out this change
+ together with the change in build_array_type. --rms */
change_main_variant (type,
build_array_type (TREE_TYPE (type),
TYPE_DOMAIN (type)));
+#endif
}
/* Lay out the type now that we can get the real answer. */