]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2001 13:46:37 +0000 (13:46 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2001 13:46:37 +0000 (13:46 +0000)
        (finalize_record_size): Don't set TYPE_USER_ALIGN.

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

gcc/ChangeLog
gcc/stor-layout.c

index dbe6996d51cc3c8d2d6ad5fb670e14a0555a6e79..80ff580b7ec7ddf8c6bc73403532fdb0c0f75f85 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
+
+       * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
+       (finalize_record_size): Don't set TYPE_USER_ALIGN.
+
 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
 
        * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
index 2ac72e38f255725f01ffb49e86311e2677945b91..5431c261a85c34a73331a8b53c795876843524b3 100644 (file)
@@ -372,7 +372,7 @@ layout_decl (decl, known_align)
              && TYPE_ALIGN (type) > DECL_ALIGN (decl))))
     {        
       DECL_ALIGN (decl) = TYPE_ALIGN (type);
-      DECL_USER_ALIGN (decl) = TYPE_USER_ALIGN (type);
+      DECL_USER_ALIGN (decl) = 0;
     }
 
   /* For fields, set the bit field type and update the alignment.  */
@@ -993,7 +993,7 @@ finalize_record_size (rli)
 #else
   TYPE_ALIGN (rli->t) = MAX (TYPE_ALIGN (rli->t), rli->record_align);
 #endif
-  TYPE_USER_ALIGN (rli->t) = 1;
+  TYPE_USER_ALIGN (rli->t) = 0;
 
   /* Compute the size so far.  Be sure to allow for extra bits in the
      size in bytes.  We have guaranteed above that it will be no more