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]

Re: new __builtin_choose_type (patch) (new builtin_equal_types patch)


> Date: Fri, 5 Oct 2001 12:02:32 +0100 (BST)
> From: "Joseph S. Myers" <jsm28@cam.ac.uk>
> To: Jakub Jelinek <jakub@redhat.com>
> cc: <gcc@gcc.gnu.org>

> I think the following (which would need to be grammer symbols rather than
> simple built-in functions) should suffice:

Ick!

There isn't much wrong with __builtin_same_type (*(T *)0, *(int*)0)...
One can compare double to int, if one wants...  I don't favor a
grammar extension, since a trivial work around exists.  Since these
things are not `evaluated' we aren't actually dereferencing 0.  This
allows these things to fit more naturally into the present framework.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]