Hi Yoshinori,
Yoshinori Sato wrote,
If argument passing to register case (ex.
-mregparam=3).
This case set all parameters set to register from caller.
But callee refer to stack. So can't get parameter.
The patch breaks toolchain building for alpha:
/home/wbx/embedded-test/openadk/toolchain_qemu-alpha_uclibc-ng_alpha/usr/bin/alpha-openadk-linux-uclibc-gcc
-c libc/sysdeps/linux/common/open.c -o
libc/sysdeps/linux/common/open.os -Wall -Ws
trict-prototypes -Wstrict-aliasing -funsigned-char -fno-builtin
-fno-asm -fmerge-all-constants -std=gnu99 -fno-stack-protector
-nostdinc -I./include -I./include -include libc-symbols.h -I./l
ibc/sysdeps/linux/alpha -I./libc/sysdeps/linux -I./ldso/ldso/alpha
-I./ldso/include -I. -DSTATIC -Os -fstrict-aliasing -fwrapv
-fno-ident -fhonour-copts -static -Os -pipe -fomit-frame-pointe
r -fno-unwind-tables -fno-asynchronous-unwind-tables
-I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/alpha
-I./libpthread/linuxthreads.old/sysdeps/alpha
-I./libpthread/linuxthreads.o
ld/sysdeps/unix/sysv/linux
-I./libpthread/linuxthreads.old/sysdeps/pthread
-I./libpthread/linuxthreads.old -I./libpthread
-I./libc/sysdeps/linux/common -isystem /home/wbx/embedded-test/opena
dk/toolchain_qemu-alpha_uclibc-ng_alpha/usr/lib/gcc/alpha-openadk-linux-uclibc/5.3.0/include-fixed
-isystem
/home/wbx/embedded-test/openadk/toolchain_qemu-alpha_uclibc-ng_alpha/usr/lib/gcc/a
lpha-openadk-linux-uclibc/5.3.0/include
-I/home/wbx/embedded-test/openadk/target_qemu-alpha_uclibc-ng_alpha/usr/include/
-DNDEBUG -DIN_LIB=libc -fPIC -MT libc/sysdeps/linux/common/open.os
-MD -MP -MF libc/sysdeps/linux/common/.open.os.dep
In file included from ./include/sys/syscall.h:34:0,
from libc/sysdeps/linux/common/open.c:10:
./include/cancel.h:43:19: error: conflicting types for
'__open2_nocancel'
#define _NC(name) __##name##_nocancel
^
./include/bits/syscalls-common.h:96:6: note: in definition of macro
'SYSCALL_FUNC'
type name(C_DECL_ARGS_##nargs(args)) { \
^
libc/sysdeps/linux/common/open.c:22:1: note: in expansion of macro
'_syscall2'
_syscall2(int, __NC(open2), const char *, file, int, flags)
^
./include/cancel.h:42:20: note: in expansion of macro '_NC'
#define __NC(name) _NC(name)
^
libc/sysdeps/linux/common/open.c:22:16: note: in expansion of macro
'__NC'
_syscall2(int, __NC(open2), const char *, file, int, flags)
^
Any idea?
best regards
Waldemar