This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
move2add change breaks arm bootstrap
- To: aolivia at redhat dot com, gcc-bugs at gcc dot gnu dot org
- Subject: move2add change breaks arm bootstrap
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Sat, 13 Jan 2001 19:12:12 +0000
- cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
[Yet another bug that has broken bootstrapping on the ARM.]
Alexandre,
It would appear that your recent patch to move2add_note_store is causing a
miscompilation of init_ggc during stage2 of an ARM bootstrap. It looks as
though somehow it is failing to note that an increment is inside a loop.
We thus have the sequence
r4 := 0
Loop
...
r4 := r4 + 1
cmp r4, 31
b[leu] Loop
#loop exits when r4 == 32
r4 := 32 <= this gets transformed to r4 := r4 + 31
...
R.
ggc.i.bz2