From: Jim Wilson <wilson@redhat.com>
To: joel.sherrill@OARcorp.com
Cc: gcc@gcc.gnu.org, guerby@acm.org
Subject: Re: 3.1 branch Ada cross report
Date: Wed, 01 May 2002 14:09:00 -0000 [thread overview]
Message-ID: <xwun0vjtw5v.fsf@tonopah.toronto.redhat.com> (raw)
In-Reply-To: <3CCED372.616FBD2B@OARcorp.com>
>i960-rtems -
> ../../../gcc-to-merge/gcc/ada/utils.c: In function
>`finish_record_type':
> ../../../gcc-to-merge/gcc/ada/utils.c:868: `record_size' undeclared
>(first use in this function)
This is an Ada front end bug. You will get this error on most any target that
defines ROUND_TYPE_SIZE, as it is using the undeclared record_size variable
inside a section of code surrounded by #ifdef ROUND_TYPE_SIZE.
This looks like a simple typo. I think the correct fix is this.
I have made no attempt to verify this fix.
2002-05-01 Jim Wilson <wilson@redhat.com>
* ada/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));
next prev parent reply other threads:[~2002-05-01 21:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-30 10:46 Joel Sherrill
2002-05-01 14:09 ` Jim Wilson [this message]
2002-05-02 4:15 ` Joel Sherrill
2002-05-02 8:23 ` Jim Wilson
2002-05-01 14:39 Richard Kenner
2002-05-02 8:49 Richard Kenner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xwun0vjtw5v.fsf@tonopah.toronto.redhat.com \
--to=wilson@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=guerby@acm.org \
--cc=joel.sherrill@OARcorp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).