This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips va_arg question


Thanks a lot.

This code is little snapshots from pretty large SW
with underlaying RTOS and we have problem with calling
function with variable number of arguments from
threads. 

I am very thankfull for Your effort. 


--- Richard Sandiford <rsandifo@redhat.com> wrote:

> Mile Davidovic <mdavidyu@yahoo.com> writes:
> > Passing of double to function with variable number
> of
> > arguments is over stack, and va_arg inside of
> function
> > with variable number of arguments suppose that sp
> > could be divided by 8.
> 
> Yes.  The ABIs say that sp must be divisible by
> 8[*].  If it isn't
> for you then something is very wrong.  Where's the
> misaligned sp
> coming from?
> 
> Richard
> 
>   [*] n32 and n64 say 16, but that doesn't affect
> you if you're
>       using mips64-elf.
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]