This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> On Thu, 13 Nov 2003, Joern Rennecke wrote: > > > exists in c99, it is not compatible with any pointer type, and > > thus assigning a union tree_node * to ok is a constraint violation > > of 6.5.16.1 . > > The last case of 6.5.16.1#1 ("the left operand has type _Bool and the > right is a pointer") is the one that applies. > > But the requirement for cross-compilers to build with 2.95 means we can't > use this (or other properties of _Bool that distinguish it from other > integer types) in GCC. > Indeed. However, in this case the patch is trivial. Just change the declaration of ok to a tree and we can use an implicit NULL check. I'm just testing with this change:
Attachment:
decl.patch
Description: decl.patch
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |