[PATCH] Allow vector bool even after #include <stdbool.h>

David Edelsohn dje.gcc@gmail.com
Tue May 26 12:43:00 GMT 2009


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



More information about the Gcc-patches mailing list