This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.1 branch Ada cross report
- From: Jim Wilson <wilson at redhat dot com>
- To: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Cc: David Edelsohn <dje at watson dot ibm dot com>, gcc-patches at gcc dot gnu dot org, guerby at acm dot org
- Date: 02 May 2002 15:28:44 -0400
- Subject: Re: 3.1 branch Ada cross report
- References: <200205021526.LAA27682@makai.watson.ibm.com><3CD16134.FE7BA31C@OARcorp.com>
I checked in this patch on the mainline. I included the patch below, since it
hasn't appeared on this list yet. This patch was tested by i960-rtems and
powerpc-rtems builds done by Joel Sherrill. This patch was written to fix
an i960-rtems Ada build problem reported to the gcc list. It also fixes a
powerpc-rtems build problem.
The same build failures are present on the gcc 3.1 branch.
gcc/ada/ChangeLog
2002-05-02 Jim Wilson <wilson@redhat.com>
* utils.c (finish_record_type): Change record_size to record_type.
Index: utils.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/utils.c,v
retrieving revision 1.17
diff -p -r1.17 utils.c
*** utils.c 18 Apr 2002 17:53:47 -0000 1.17
--- utils.c 1 May 2002 21:03:33 -0000
*************** finish_record_type (record_type, fieldli
*** 853,859 ****
#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,
TYPE_ALIGN (record_type) / BITS_PER_UNIT);
#else
size = round_up (size, TYPE_ALIGN (record_type));
--- 853,859 ----
#ifdef ROUND_TYPE_SIZE
size = ROUND_TYPE_SIZE (record_type, size, TYPE_ALIGN (record_type));
! 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));