This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Allow vector bool even after #include <stdbool.h>
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>, Ben Elliston <bje at au dot ibm dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 May 2009 08:43:45 -0400
- Subject: Re: [PATCH] Allow vector bool even after #include <stdbool.h>
The following patch implements it, bootstrapped/regtested on powerpc64-linux
(regtested both -m32 and -m64), ok for trunk/4.4?
2009-05-05 Jakub Jelinek <jakub@redhat.com>
PR target/40017
* config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
(altivec_categorize_keyword, init_vector_keywords,
rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
similar to bool.
* gcc.target/powerpc/altivec-types-1.c: Don't expect error for
__vector _Bool.
* gcc.target/powerpc/altivec-30.c: New test.
* gcc.target/powerpc/altivec-31.c: New test.
This is okay with me.
Thanks, David