This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16155] New: Altivec compilation fails with -ansi
- From: "paulus at samba dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2004 09:30:19 -0000
- Subject: [Bug c/16155] New: Altivec compilation fails with -ansi
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compilation of a simple altivec test program fails if the -ansi flag is
given to gcc. When compiled with
gcc -maltivec -c -ansi foo.c
I get the error:
foo.c: In function `foo':
foo.c:6: error: parse error before "typeof"
foo.c contains:
#include <altivec.h>
void foo(void)
{
vector unsigned short a, b;
a = vec_splat(b, 0);
}
Without the -ansi flag the compilation succeeds.
--
Summary: Altivec compilation fails with -ansi
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: paulus at samba dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16155