Commit 87e184d1 by Ben Elliston Committed by Ben Elliston

Patch for PR target/16286

2004-08-12  Ben Elliston  <bje@au.ibm.com>

	* config/rs6000/altivec.h: Change vector to __vector throughout.
	(Except for the `vector' macro itself).

[testsuite]
2004-08-12  Ben Elliston  <bje@au.ibm.com>

	* gcc.dg/pr16286.c: New test.

From-SVN: r85868
parent 03a2b810
2004-08-12 Ben Elliston <bje@au.ibm.com>
PR target/16286
* config/rs6000/altivec.h: Change vector to __vector throughout.
(Except for the `vector' macro itself).
2004-08-12 Zack Weinberg <zack@codesourcery.com> 2004-08-12 Zack Weinberg <zack@codesourcery.com>
* genpreds.c: Add capability to generate predicate bodies as * genpreds.c: Add capability to generate predicate bodies as
......
This source diff could not be displayed because it is too large. You can view the blob instead.
2004-08-12 Ben Elliston <bje@au.ibm.com>
PR target/16286
* gcc.dg/pr16286.c: New test.
2004-08-12 Jan Beulich <jbeulich@novell.com> 2004-08-12 Jan Beulich <jbeulich@novell.com>
* g++.dg/ext/asm5.C: New. * g++.dg/ext/asm5.C: New.
......
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-maltivec" } */
/* PR 16286
* Compilation of a simple Altivec test program fails if vector is #undefined
* when compiling with -maltivec. This may be done for building C++ programs
* that use the STL <vector>.
*/
#include <altivec.h>
#undef vector
void test(void)
{
__vector unsigned int a, b;
a = vec_and(a, b);
}
/* { dg-bogus "syntax 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