diff options
author | Jim Wilson <wilson@redhat.com> | 2002-05-02 19:27:42 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2002-05-02 12:27:42 -0700 |
commit | ac293f98456e481b8ea41dcc0b5bd2490275433f (patch) | |
tree | 4e51a3193070b6b1712d0aee561319f81f86512e /gcc/ada | |
parent | b651af860eb127e88774d6b4add0a560944f2cd7 (diff) | |
download | gcc-ac293f98456e481b8ea41dcc0b5bd2490275433f.zip gcc-ac293f98456e481b8ea41dcc0b5bd2490275433f.tar.gz gcc-ac293f98456e481b8ea41dcc0b5bd2490275433f.tar.bz2 |
Fix i960-rtems Ada build failure reported by Joel Sherrill.
* utils.c (finish_record_type): Change record_size to record_type.
From-SVN: r53058
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ada/utils.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 5a53e6d..90a8859 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2002-05-02 Jim Wilson <wilson@redhat.com> + + * utils.c (finish_record_type): Change record_size to record_type. + 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca> * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides. diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index 70e2dc7..292efd3 100644 --- a/gcc/ada/utils.c +++ b/gcc/ada/utils.c @@ -853,7 +853,7 @@ finish_record_type (record_type, fieldlist, has_rep, defer_debug) #ifdef ROUND_TYPE_SIZE size = ROUND_TYPE_SIZE (record_type, size, TYPE_ALIGN (record_type)); - size_unit = ROUND_TYPE_SIZE_UNIT (record_size, size_unit, + size_unit = ROUND_TYPE_SIZE_UNIT (record_type, size_unit, TYPE_ALIGN (record_type) / BITS_PER_UNIT); #else size = round_up (size, TYPE_ALIGN (record_type)); |