This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv4] Call direct system calls for socket operations
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 31 Aug 2015 17:23:28 -0300
- Subject: Re: [PATCHv4] Call direct system calls for socket operations
- Authentication-results: sourceware.org; auth=none
- References: <1435830813-4282-1-git-send-email-raji at linux dot vnet dot ibm dot com> <1439532720-4720-1-git-send-email-raji at linux dot vnet dot ibm dot com> <mvma8t7ye6k dot fsf at hawking dot suse dot de>
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.
>