This is the mail archive of the
mailing list for the GCC project.
Re: new __builtin_choose_type (patch) (new builtin_equal_types patch)
- To: jakub at redhat dot com, jsm28 at cam dot ac dot uk
- Subject: Re: new __builtin_choose_type (patch) (new builtin_equal_types patch)
- From: mike stump <mrs at windriver dot com>
- Date: Fri, 5 Oct 2001 11:46:19 -0700 (PDT)
- Cc: gcc at gcc dot gnu dot org
> Date: Fri, 5 Oct 2001 12:02:32 +0100 (BST)
> From: "Joseph S. Myers" <email@example.com>
> To: Jakub Jelinek <firstname.lastname@example.org>
> cc: <email@example.com>
> I think the following (which would need to be grammer symbols rather than
> simple built-in functions) should suffice:
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.