diff options
author | Jason Merrill <jason@redhat.com> | 2001-08-16 09:46:37 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-08-16 09:46:37 -0400 |
commit | 7256efa629eaade7e927099a12ecd5ad305f118b (patch) | |
tree | 006a321decf0b12eb41a08bd597a81992f376684 | |
parent | 5972a1107cc847fcd2f19b2a3c951041a4c5dca1 (diff) | |
download | gcc-7256efa629eaade7e927099a12ecd5ad305f118b.zip gcc-7256efa629eaade7e927099a12ecd5ad305f118b.tar.gz gcc-7256efa629eaade7e927099a12ecd5ad305f118b.tar.bz2 |
stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
* stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
(finalize_record_size): Don't set TYPE_USER_ALIGN.
From-SVN: r44937
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stor-layout.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbe6996..80ff580b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 2ac72e3..5431c26 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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 |