This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in gcc/config/arm/arm.c
- To: egcs-bugs at cygnus dot com
- Subject: Bug in gcc/config/arm/arm.c
- From: Graham Sttot <grahams at rcp dot co dot uk>
- Date: Sun, 02 Nov 1997 21:21:30 +0000
- Reply-To: grahams at rcp dot co dot uk
Hi,
There is a bug in output_move_double() in the file gcc/config/arm/arm.c
which sometimes causes the stack to be corrupted.
The declaration of otherops should be
'rtx otherops[3]' and not 'rtx otherops[2]'
The bug occured when cross-compiling from linux to arm-semi-aout target.
ECGS was configured "--target=arm-semi-aout" and with CFLAGS="-O6
-mpentium"
Doing a full bootstrap using "make" failed when it tried to compile the
_divdi3 function in libgcc2.c, serveral of the other functions from
libgcc2.c will fail.
With the change implemented the full bootstrap completes.
Graham