Commit 3c871f3f by Andreas Schwab Committed by Andreas Schwab

re PR target/16286 (Compile errors on altivec ops after #undef vector)

	PR target/16286
	* config/rs6000/altivec.h: Replace bool by __bool and pixel by
	__pixel.

testsuite:
	* gcc.dg/pr16286.c: Also test for bool and pixel.

From-SVN: r90194
parent fccf8fc6
2004-11-06 Andreas Schwab <schwab@suse.de>
PR target/16286
* config/rs6000/altivec.h: Replace bool by __bool and pixel by
__pixel.
2004-11-06 Kazu Hirata <kazu@cs.umass.edu> 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-copyrename.c (rename_ssa_copies): Make it static. * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
2004-11-06 Andreas Schwab <schwab@suse.de>
* gcc.dg/pr16286.c: Also test for bool and pixel.
2004-11-06 Joseph S. Myers <joseph@codesourcery.com> 2004-11-06 Joseph S. Myers <joseph@codesourcery.com>
* gcc.dg/anon-struct-6.c, gcc.dg/anon-struct-7.c, * gcc.dg/anon-struct-6.c, gcc.dg/anon-struct-7.c,
......
...@@ -9,11 +9,16 @@ ...@@ -9,11 +9,16 @@
#include <altivec.h> #include <altivec.h>
#undef vector #undef vector
#undef pixel
#undef bool
void test(void) void test(void)
{ {
__vector unsigned int a, b; __vector unsigned int a, b;
a = vec_and(a, b); a = vec_and(a, b);
vec_step (b);
} }
/* { dg-bogus "syntax error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */ /* { dg-bogus "(syntax|parse) error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */
/* { dg-bogus "(syntax|parse) error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */
/* { dg-bogus "(syntax|parse) error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment