aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>2018-05-23 16:33:36 -0600
committerJeff Law <law@gcc.gnu.org>2018-05-23 16:33:36 -0600
commit2aece9c19970ad94abeeca4f85782f50799abdfc (patch)
treed012c1b4f1887cf875de320555ee7c20d52bdda6 /gcc/tree.c
parent54fd159056765b65191e7685673133f34786b76c (diff)
downloadgcc-2aece9c19970ad94abeeca4f85782f50799abdfc.zip
gcc-2aece9c19970ad94abeeca4f85782f50799abdfc.tar.gz
gcc-2aece9c19970ad94abeeca4f85782f50799abdfc.tar.bz2
re PR target/78849 (ICE on initialization of global struct containing __int20 array at varasm.c:4968)
PR target/78849 * gcc/tree.c (build_common_tree_nodes): Dont set TYPE_SIZE for __intN types. PR target/78849 * gcc.target/msp430/msp430.exp: Remove -pedantic-errors from DEFAULT_CFLAGS. * gcc.target/msp430/pr78849.c: New test. From-SVN: r260627
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index ff982fe..e8dc425 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -9785,8 +9785,6 @@ build_common_tree_nodes (bool signed_char)
{
int_n_trees[i].signed_type = make_signed_type (int_n_data[i].bitsize);
int_n_trees[i].unsigned_type = make_unsigned_type (int_n_data[i].bitsize);
- TYPE_SIZE (int_n_trees[i].signed_type) = bitsize_int (int_n_data[i].bitsize);
- TYPE_SIZE (int_n_trees[i].unsigned_type) = bitsize_int (int_n_data[i].bitsize);
if (int_n_data[i].bitsize > LONG_LONG_TYPE_SIZE
&& int_n_enabled_p[i])