This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/16155] New: Altivec compilation fails with -ansi


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]