This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Error in INSN_ADDRESSES (INSN_UID (get_last_insn ()))
- From: Marek Michalkiewicz <marekm at amelek dot gda dot pl>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 3 Jun 2002 16:52:39 +0200 (CEST)
- Subject: Error in INSN_ADDRESSES (INSN_UID (get_last_insn ()))
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