This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCHv4] Call direct system calls for socket operations


I am not seeing this with GCC 4.9, so I assume it is with a new release.
Which version did you use?

On 31-08-2015 06:56, Andreas Schwab wrote:
> In file included from ../sysdeps/powerpc/nptl/tls.h:48:0,
>                  from ../include/errno.h:27,
>                  from ../sysdeps/unix/sysv/linux/socketpair.c:18:
> ../sysdeps/unix/sysv/linux/socketpair.c: In function '__socketpair':
> ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:198:54: error: 'sizeof' on array function parameter 'sv' will return size of 'int *' [-Werror=sizeof-array-argument]
>   if (__builtin_classify_type (__arg4) != 5 && sizeof (__arg4) > 4) \
>                                                       ^
> ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:128:5: note: in expansion of macro 'LOADARGS_4'
>      LOADARGS_##nr(name, args);      \
>      ^
> ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:142:3: note: in expansion of macro 'INTERNAL_SYSCALL_NCS'
>    INTERNAL_SYSCALL_NCS (__NR_##name, err, nr, ##args)
>    ^
> ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:94:23: note: in expansion of macro 'INTERNAL_SYSCALL'
>      long int sc_ret = INTERNAL_SYSCALL (name, sc_err, nr, args); \
>                        ^
> ../sysdeps/unix/sysv/linux/socketpair.c:30:10: note: in expansion of macro 'INLINE_SYSCALL'
>    return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, sv);
>           ^
> ../sysdeps/unix/sysv/linux/socketpair.c:27:55: note: declared here
>  __socketpair (int domain, int type, int protocol, int sv[2])
>                                                        ^
> 
> Andreas.
> 


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