public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16286] New: Compile errors on altivec ops after #undef vector
@ 2004-06-30  0:30 paulus at samba dot org
  2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: paulus at samba dot org @ 2004-06-30  0:30 UTC (permalink / raw)
  To: gcc-bugs

The Altivec PIM says that programs may #undef vector and/or pixel if desired.
However, doing that with the current <altivec.h> leads to compile errors.
This test program:

#include <altivec.h>
#undef vector

void test(void)
{
        __vector unsigned int a, b;
        a = vec_and(a, b);
}

gives the error:

vb2.c: In function `test':
vb2.c:8: error: parse error before "vector"

when compiled with gcc -c -maltivec.  If I take out the #undef vector then
the error doesn't occur.

-- 
           Summary: Compile errors on altivec ops after #undef vector
           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=16286


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

end of thread, other threads:[~2004-11-06 20:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
2004-08-12 11:02 ` [Bug target/16286] " cvs-commit at gcc dot gnu dot org
2004-08-12 11:03 ` bje at gcc dot gnu dot org
2004-08-12 14:20 ` pinskia at gcc dot gnu dot org
2004-08-17  0:27 ` janis187 at us dot ibm dot com
2004-08-20 12:42 ` bje at gcc dot gnu dot org
2004-11-01 13:28 ` schwab at suse dot de
2004-11-06 20:19 ` cvs-commit at gcc dot gnu dot org
2004-11-06 20:25 ` schwab at suse dot de

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).