public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16155] New: Altivec compilation fails with -ansi
@ 2004-06-23  9:37 paulus at samba dot org
  2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: paulus at samba dot org @ 2004-06-23  9:37 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-02  1:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
2004-06-23 15:19 ` [Bug target/16155] " pinskia at gcc dot gnu dot org
2004-06-24  5:33 ` bje at gcc dot gnu dot org
2004-07-30  6:25 ` bje at gcc dot gnu dot org
2004-07-30  7:02 ` pinskia at gcc dot gnu dot org
2004-07-30 13:51 ` giovannibajo at libero dot it
2004-08-02  1:05 ` cvs-commit at gcc dot gnu dot org
2004-08-02  1:23 ` bje at gcc dot gnu dot org
2004-08-02  1:24 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).