]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree.c (make_node, case 't'): Set alignment to that of
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Oct 2000 09:50:34 +0000 (09:50 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Oct 2000 09:50:34 +0000 (09:50 +0000)
char_type_node.
* expr.c (move_by_pieces_ninsns): Abort if some length remains.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37071 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c
gcc/tree.c

index 25f59732367b79b0f81ae89931a89268deb4c8c4..4bac913cb0006b80089a25926aef5d5fca60ceef 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-26  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * 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.
+
 2000-10-25  Mark Mitchell  <mark@codesourcery.com>
 
        * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
index 06aebb6ee8c66bb3a1c4bc770a165027de81affb..d12f0a2cafc1ca07c235f01fc3d1681349a30ee6 100644 (file)
@@ -1536,6 +1536,8 @@ move_by_pieces_ninsns (l, align)
       max_size = GET_MODE_SIZE (mode);
     }
 
+  if (l)
+    abort ();
   return n_insns;
 }
 
index 4bebf20d55cbbecb495aaa784e1df9a8cb3ef0bd..96407a2a1a2a6c27809d32346ad011f5188109fd 100644 (file)
@@ -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;