public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marek Michalkiewicz <marekm@amelek.gda.pl>
To: gcc@gcc.gnu.org
Subject: Error in INSN_ADDRESSES (INSN_UID (get_last_insn ()))
Date: Mon, 03 Jun 2002 07:52:00 -0000	[thread overview]
Message-ID: <E17EtCJ-0002A7-00@alf.amelek.gda.pl> (raw)

Hi,

trying to build --target=avr from CVS today, I got the following error:

../../../cvs/egcs/gcc/libgcc2.c: In function `__cmpdi2':
../../../cvs/egcs/gcc/libgcc2.c:812: virtual array insn_addresses[184]: element
186 out of bounds in avr_output_function_epilogue, at config/avr/avr.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

The offending code in avr.c:752 is this:

  function_size = (INSN_ADDRESSES (INSN_UID (get_last_insn ()))
                   - INSN_ADDRESSES (INSN_UID (get_insns ())));

The size is only used for statistics (numbers reported as part of comments
in the asm output) so it's no big deal if it has to be disabled, but it
used to work...  Is this a bug in the AVR port (shouldn't calculate the
function size that way, it worked by accident), or a bug elsewhere in GCC?

Thanks,
Marek

             reply	other threads:[~2002-06-03 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-03  7:52 Marek Michalkiewicz [this message]
2002-06-03  8:07 ` Jan Hubicka

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=E17EtCJ-0002A7-00@alf.amelek.gda.pl \
    --to=marekm@amelek.gda.pl \
    --cc=gcc@gcc.gnu.org \
    /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).