This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Fix ppc32
On Tue, Jan 07, 2003 at 02:02:33AM +0100, Franz Sirl wrote:
> On Tuesday 07 January 2003 01:50, Ulrich Drepper wrote:
> > I forgot to mention: I did not make the change to dl-misc.c. I don't
> > see a reason to add the extra &.
>
> As I said in my email, I have argument size safety checks in
> sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h added. Since the check
> currently uses a simple sizeof(ARGN)>4 comparison passing an array without an
> & to INLINE_SYSCALL/INTERNAL_SYSCALL causes the check to fail.
>
> I could play extensive __builtin_classify_type() games instead, but I thought
> it's not worth the trouble compared to adding a single '&' :-).
Couldn't you use sizeof((ARGN) + 0) > 4 instead?
Jakub