aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-10-26 09:50:34 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-10-26 09:50:34 +0000
commit13c6f0d5b3a61f3ec7dfb0a38fbe02f0cf24f75b (patch)
tree106754ce3485da2d53812a3bdf883f2aa462ffaa /gcc/tree.c
parent95faa9a15e04b7a929c2b9f72b758bd5dcedba9b (diff)
downloadgcc-13c6f0d5b3a61f3ec7dfb0a38fbe02f0cf24f75b.zip
gcc-13c6f0d5b3a61f3ec7dfb0a38fbe02f0cf24f75b.tar.gz
gcc-13c6f0d5b3a61f3ec7dfb0a38fbe02f0cf24f75b.tar.bz2
tree.c (make_node, case 't'): Set alignment to that of char_type_node.
* tree.c (make_node, case 't'): Set alignment to that of char_type_node. * expr.c (move_by_pieces_ninsns): Abort if some length remains. From-SVN: r37071
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4bebf20..96407a2 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -438,7 +438,7 @@ make_node (code)
case 't':
TYPE_UID (t) = next_type_uid++;
- TYPE_ALIGN (t) = 1;
+ TYPE_ALIGN (t) = char_type_node ? TYPE_ALIGN (char_type_node) : 0;
TYPE_USER_ALIGN (t) = 0;
TYPE_MAIN_VARIANT (t) = t;
TYPE_ATTRIBUTES (t) = NULL_TREE;