Re: How to set the alignment

2009-08-05 Thread Mohamed Shafi
2009/8/5 Jim Wilson : > On Tue, 2009-08-04 at 11:09 +0530, Mohamed Shafi wrote: >> >> i am not able to implement the alignment for short. >> >> The following is are the macros that i used for this >> >> #define PARM_BOUNDARY 8 >> >> #define STACK_BOUNDARY 64 >> The target is 32bit . The first two p

Re: How to set the alignment

2009-08-04 Thread Jim Wilson
On Tue, 2009-08-04 at 11:09 +0530, Mohamed Shafi wrote: > >> i am not able to implement the alignment for short. > >> The following is are the macros that i used for this > >> #define PARM_BOUNDARY 8 > >> #define STACK_BOUNDARY 64 > The target is 32bit . The first two parameters are passed in regis

Re: How to set the alignment

2009-08-04 Thread Jean Christophe Beyler
I had a similar issue on my port. I fixed it by adding a check_move before the generation of the move to look at the potential offset used. That allowed the compiler to not generate those wrong offsets depending on the mode on my port. It looks something like this : /* Check the operands of the m

Re: How to set the alignment

2009-08-03 Thread Mohamed Shafi
2009/8/3 Jim Wilson : > On 08/03/2009 02:14 AM, Mohamed Shafi wrote: >> >> short - 2 bytes >> i am not able to implement the alignment for short. >> The following is are the macros that i used for this >> #define PARM_BOUNDARY 8 >> #define STACK_BOUNDARY 64 > > You haven't explained what the actual

Re: How to set the alignment

2009-08-03 Thread Jim Wilson
On 08/03/2009 02:14 AM, Mohamed Shafi wrote: short - 2 bytes i am not able to implement the alignment for short. The following is are the macros that i used for this #define PARM_BOUNDARY 8 #define STACK_BOUNDARY 64 You haven't explained what the actual problem is. Is there a problem with glo

How to set the alignment

2009-08-03 Thread Mohamed Shafi
Hello all, I am doing a private port in GCC 4.4.0. For my target the following are the alignment requirements: int - 4 bytes short - 2 bytes char - 1 byte pointer - 4 bytes stack pointer - 4 bytes i am not able to implement the alignment for short. The following is are the macros that i used fo