This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mismatched types in ADDR_EXPR from c-typeck.c:build_function_call
On Wed, May 18, 2005 at 01:25:05PM +0200, Richard Guenther wrote:
>
> The following snippet
>
> /* Differs from default_conversion by not setting TREE_ADDRESSABLE
> (because calling an inline function does not mean the function
> needs to be separately compiled). */
> fntype = build_type_variant (TREE_TYPE (function),
> TREE_READONLY (function),
> TREE_THIS_VOLATILE (function));
> fundecl = function;
> function = build1 (ADDR_EXPR, build_pointer_type (fntype),
> function);
>
> purposely builds an ADDR_EXPR tree with mismatched types:
Well, no, the only thing it purposfully does (according to the comment)
is not set TREE_ADDRESSABLE. No idea why we're building a type variant.
r~