Re: [PATCH] libgloss: pru: Fix _open syscal arguments

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Apr  3 21:57, Dimitar Dimitrov wrote:
> The _open() C function is declared as having variable arguments in
> newlib, so second and third arguments are passed on stack. Add code to
> move them into registers, since that's where the PRU simulator expects
> them.
> 
> Issue was exposed by the GCC test gcc.c-torture/execute/fprintf-2.c,
> which relies on tmpnam implementation to pass correct flags to _open.
> 
> Signed-off-by: Dimitar Dimitrov <[email protected]>
> ---
>  libgloss/pru/syscalls.S | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)

Pushed. Sorry for the delay.


Thanks,
Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.