2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-20 05:50:28 +08:00

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
This commit is contained in:
Ben Elliston 2004-08-12 11:02:38 +00:00 committed by Ben Elliston
parent 03a2b8100f
commit 87e184d1c3
4 changed files with 5574 additions and 5544 deletions
gcc
ChangeLog
config/rs6000
testsuite

@ -1,3 +1,9 @@
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>
* genpreds.c: Add capability to generate predicate bodies as

File diff suppressed because it is too large Load Diff

@ -1,3 +1,8 @@
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>
* g++.dg/ext/asm5.C: New.

@ -0,0 +1,19 @@
/* { 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 } */