Commit ae9e7e16 by Nathan Sidwell Committed by Martin v. Löwis

cvt.c (convert_pointer_to_real): Use same_type_p.

        * cvt.c (convert_pointer_to_real): Use same_type_p.
	* typeck.c (comp_target_types): Use same_type_p.

From-SVN: r26105
parent 6ab06cbb
Wed Mar 31 11:30:43 BST 1999 Nathan Sidwell <nathan@acm.org>
* cvt.c (convert_pointer_to_real): Use same_type_p.
* typeck.c (comp_target_types): Use same_type_p.
1999-03-31 Jason Merrill <jason@yorick.cygnus.com> 1999-03-31 Jason Merrill <jason@yorick.cygnus.com>
* semantics.c (begin_inline_definitions, * semantics.c (begin_inline_definitions,
......
...@@ -579,7 +579,7 @@ convert_pointer_to_real (binfo, expr) ...@@ -579,7 +579,7 @@ convert_pointer_to_real (binfo, expr)
ptr_type = cp_build_qualified_type (type, ptr_type = cp_build_qualified_type (type,
CP_TYPE_QUALS (TREE_TYPE (intype))); CP_TYPE_QUALS (TREE_TYPE (intype)));
ptr_type = build_pointer_type (ptr_type); ptr_type = build_pointer_type (ptr_type);
if (ptr_type == TYPE_MAIN_VARIANT (intype)) if (same_type_p (ptr_type, TYPE_MAIN_VARIANT (intype)))
return expr; return expr;
my_friendly_assert (!integer_zerop (expr), 191); my_friendly_assert (!integer_zerop (expr), 191);
......
...@@ -1021,7 +1021,7 @@ comp_target_types (ttl, ttr, nptrs) ...@@ -1021,7 +1021,7 @@ comp_target_types (ttl, ttr, nptrs)
{ {
ttl = TYPE_MAIN_VARIANT (ttl); ttl = TYPE_MAIN_VARIANT (ttl);
ttr = TYPE_MAIN_VARIANT (ttr); ttr = TYPE_MAIN_VARIANT (ttr);
if (ttl == ttr) if (same_type_p (ttl, ttr))
return 1; return 1;
if (TREE_CODE (ttr) != TREE_CODE (ttl)) if (TREE_CODE (ttr) != TREE_CODE (ttl))
......
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