Re: Problems with gcc 4.0 for powerpc

2006-01-12 Thread David Edelsohn
> Dmytro writes: - stwu r1,-24(r1) + stwu r1,-32(r1) ... - addi r1,r1,24 + addi r1,r1,32 This difference allocates and releases two more stack slots. It probably means there is an incorrect assumption in the boot loader assembly code causing its stack usage to conflict with the compiler sa

Problems with gcc 4.0 for powerpc

2006-01-12 Thread Dmytro Bablinyuk
We have a boot loader (u-boot) that runs on powerpc platform (MPC8272) If we cross-compile it using gcc 3.4.4 it works fine and it generates the following start and end of the functions powerpc-linux-uclibc-gcc 3.4.4: stwu r1,-24(r1) li r0,128 ... addi r1,r1,24 blr That works fine. But if we