mips gcc -O1: Address exception error on store doubleword

2007-08-09 Thread Alex Gonzalez
Hi, I am seeing an address error exception caused by the gcc optimizer -O1. I have narrowed it down to the following function: static void varcopy(PVAR *pvar1, PVAR *pvar2) { memcpy(pvar1,pvar2,sizeof(PVAR)); } Being the sizeof(PVAR) 160 bytes. The exception is caused on an sd instruction

Re: mips gcc -O1: Address exception error on store doubleword

2007-08-09 Thread Alex Gonzalez
esn't happen. Also, if I do static void varcopy(void *pvar1, void *pvar2) the compiler uses sdl and avoids the crash. I am compiling for n32 ABI, so the register size is 64bits. Any ideas? On 8/9/07, David Daney <[EMAIL PROTECTED]> wrote: > Alex Gonzalez wrote: > > Hi, >

Re: mips gcc -O1: Address exception error on store doubleword

2007-08-10 Thread Alex Gonzalez
his will cause gcc to pad this entry out to ensure that it starts on an 8 byte boundary. Does this make sense? Alex On 8/9/07, Alex Gonzalez <[EMAIL PROTECTED]> wrote: > Hi, > > I'll try to come up with a short test. > > I have narrowed it a bit more. The PVAR structure