This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: h8300 _exit


> -----Original Message-----
> > After the noted patch, it seems that _exit() ignores the argument 
> > passed to it; assuming that the return code is in R0 (it's 
> normally on 
> > the stack).  Am I missing something, or has this really 
> gone unnoticed 
> > for two years?  Also, the .S version can't compensate for gcc's 
> > -mquickcall, which changes the argument passing convention.
> 
> Well, -mquickcall is on by default, so the argument is passed to r0.
> The .S version can't compenstate for gcc's -mno-quickcall.

Couldn't gcc's spec file compensate for this, by adding an additional -D
option (e.g., -D__H800_QUICKCALL__) to the '.S' processor?


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