This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix compilation with Altivec
- From: Ryan Arnold <rsa at us dot ibm dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 07 Nov 2009 08:22:05 -0600
- Subject: Re: Fix compilation with Altivec
- References: <20091106110359.GG3708@machine.or.cz> <4AF52302.6080503@redhat.com>
- Reply-to: rsa at us dot ibm dot com
On Fri, 2009-11-06 at 23:34 -0800, Ulrich Drepper wrote:
> On 11/06/2009 03:03 AM, Petr Baudis wrote:
> > 2009-11-06 Petr Baudis<pasky@suse.cz>
> >
> > * include/sys/uio.h: Change __vector to __iovec to avoid clash
> > with altivec.
>
> Bollocks. Tell these braindead idiots at IBM that they cannot steal
> commonly used keywords.
>
Good grief. Is it necessary to be so reactionary over something so
trivial?
This change from Petr should be non-controversial since it's simply
changing the un-required variable name in a function prototype.
The existing usage in include/sys/uio.h is NOW in-fact a keyword usage
violation since "__vector" is now an actual keyword recognized by the
compiler.
Despite this, Michael Meissner pushed a GCC patch which continues to
allow the use of __vector as a variable name if it isn't followed by a
qualifier which WOULD identify it as a keyword:
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00026.html
Apparently this was pushed to a version of GCC later than that used by
Petr when he identified this problem.
Ryan S. Arnold
IBM Linux Technology Center