Commit 5c121a1b by Per Bothner Committed by Per Bothner

class.c (build_static_field_ref): Add a NOP_EXPR; otherwise we get internal…

class.c (build_static_field_ref): Add a NOP_EXPR; otherwise we get internal error due to mismatched types.


	* class.c (build_static_field_ref):  Add a NOP_EXPR; otherwise we
	get internal error due to mismatched types.

From-SVN: r84256
parent 50c0d3fd
2004-07-07 Per Bothner <per@bothner.com> 2004-07-07 Per Bothner <per@bothner.com>
* class.c (build_static_field_ref): Add a NOP_EXPR; otherwise we
get internal error due to mismatched types.
* gcj.texi (Invoking gij): Document new -verbose:class flag. * gcj.texi (Invoking gij): Document new -verbose:class flag.
* gcj.texi (Linking): New node. Document -lgij usage. * gcj.texi (Linking): New node. Document -lgij usage.
......
...@@ -1126,6 +1126,7 @@ build_static_field_ref (tree fdecl) ...@@ -1126,6 +1126,7 @@ build_static_field_ref (tree fdecl)
ref = build (COMPONENT_REF, ptr_type_node, ref = build (COMPONENT_REF, ptr_type_node,
ref, TREE_CHAIN (TYPE_FIELDS (field_info_union_node)), ref, TREE_CHAIN (TYPE_FIELDS (field_info_union_node)),
NULL_TREE); NULL_TREE);
ref = build1 (NOP_EXPR, build_pointer_type (TREE_TYPE (fdecl)), ref);
return fold (build1 (INDIRECT_REF, TREE_TYPE(fdecl), ref)); return fold (build1 (INDIRECT_REF, TREE_TYPE(fdecl), ref));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment