acadia-newlib/libgloss
Dimitar Dimitrov 21f0edbf9f libgloss: pru: Fix _open syscal arguments
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 <dimitar@dinux.eu>
2022-04-27 11:43:08 +02:00
..
aarch64 libgloss: switch to AM_PROG_AR 2022-02-25 23:07:20 -05:00
arc
arm libgloss: switch to AM_PROG_AR 2022-02-25 23:07:20 -05:00
bfin
config
cr16
cris
crx
csky
d30v
doc libgloss: add new Build System Internals node to the menu 2022-03-04 01:04:25 -05:00
epiphany
fr30
frv
ft32
hp74x
i386
i960
iq2000 libgloss: iq2000: fix prototype 2022-02-25 23:08:45 -05:00
libnosys
lm32 libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
m32c
m32r
m68hc11
m68k libgloss: merge m68k configure script up a level 2022-02-16 20:14:55 -05:00
mcore libgloss: merge mcore configure script up a level 2022-02-16 20:11:55 -05:00
mep
microblaze
mips libgloss: merge mips configure script up a level 2022-02-17 20:36:41 -05:00
mn10200 libgloss: merge mn10200 configure script up a level 2022-02-16 20:16:05 -05:00
mn10300 libgloss: merge mn10300 configure script up a level 2022-02-16 20:20:14 -05:00
moxie libgloss: merge moxie configure script up a level 2022-02-16 20:10:48 -05:00
msp430
mt
nds32
nios2
or1k
pa
pru libgloss: pru: Fix _open syscal arguments 2022-04-27 11:43:08 +02:00
riscv
rl78
rs6000
rx
sh
sparc libgloss: merge sparc configure script up a level 2022-02-23 19:44:10 -05:00
sparc_leon
spu
testsuite
tic6x
v850 Revert accidental change to v850/sim.ld 2022-03-20 10:19:45 -04:00
visium
wince libgloss: merge wince configure script up a level 2022-02-17 20:35:32 -05:00
xc16x
xstormy16
ChangeLog
ChangeLog-2015
Makefile.am libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
Makefile.in libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
README libgloss: have README point to the manual 2022-02-17 20:41:53 -05:00
aclocal.m4 libgloss: switch to AM_PROG_AR 2022-02-25 23:07:20 -05:00
close.c
config.h.in
configure libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
configure.ac libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
debug.c
debug.h
fstat.c
getpid.c
glue.h
isatty.c
kill.c
lseek.c
multi-build.in libgloss: document & localize custom multi-do rule 2022-02-24 19:12:45 -05:00
open.c
print.c
putnum.c
read.c
sbrk.c
stat.c
syscall.h
unlink.c
write.c

README

Libgloss is a library for all the details that usually get glossed over.
This library refers to things like startup code, and usually I/O support
for GCC and the C library.

For more details, see the manual under doc/.