This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: <altivec.h> not happy with 3.4 on powerpc-apple-darwin7.2.0
- From: Ziemowit Laski <zlaski at apple dot com>
- To: "Timothy J. Wood" <tjw at omnigroup dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 18 Jan 2004 15:22:48 -0800
- Subject: Re: <altivec.h> not happy with 3.4 on powerpc-apple-darwin7.2.0
- References: <F013576D-49EC-11D8-8B22-0003933F3BC2@omnigroup.com>
Tim,
I have a patch that fixes this issue, among with many others. Alas, no
one has deigned to review it, much less approve it:
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01111.html
--Zem
On 18 Jan 2004, at 11.31, Timothy J. Wood wrote:
Configured thusly:
../gcc/configure --prefix="$PREFIX" --enable-languages="c,c++,objc"
Compiling just:
#include <altivec.h>
with:
$PREFIX/bin/c++ -O3 -maltivec x.cpp -S -o x.s
yields zillions of errors of the form:
In file included from x.cpp:2:
/Volumes/Space/Users/bungi/Source-head/GNU/gcc/gcc-3.4/install/bin/../
lib/gcc/powerpc-apple-darwin7.2.0/3.4.0/include/altivec.h:124: error:
declaration of C function `float __vector__ vec_ctf(int __vector__,
char)' conflicts with
/Volumes/Space/Users/bungi/Source-head/GNU/gcc/gcc-3.4/install/bin/../
lib/gcc/powerpc-apple-darwin7.2.0/3.4.0/include/altivec.h:123: error:
previous declaration `float __vector__ vec_ctf(unsigned int
__vector__, char)' here
...
-tim