From: Jeffrey A Law Date: Sun, 29 Mar 1998 12:31:34 +0000 (+0000) Subject: * cvt.c (build_conversion_type_1): Delete dead function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=228fab4ab6fb94957fa4ae6755db1c5e0bf9a462;p=gcc.git * cvt.c (build_conversion_type_1): Delete dead function. From-SVN: r18897 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 138ac705b29..f732eed15e7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ Sun Mar 29 00:47:32 1998 Jeffrey A Law (law@cygnus.com) + * cvt.c (build_conversion_type_1): Delete dead function. + * cp-tree.h (push_expression_obstack): Declare. * call.c (source_type): #if 0 out. diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index dfaee3c0934..7cd5f2eee59 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -41,8 +41,6 @@ extern tree static_aggregates; static tree cp_convert_to_pointer PROTO((tree, tree)); static tree convert_to_pointer_force PROTO((tree, tree)); static tree build_up_reference PROTO((tree, tree, int, int)); -static tree build_type_conversion_1 PROTO((tree, tree, tree, tree, - int)); /* Change of width--truncation and extension of integers or reals-- is represented with NOP_EXPR. Proper functioning of many things @@ -902,42 +900,6 @@ convert_force (type, expr, convtype) return ocp_convert (type, e, CONV_C_CAST|convtype, LOOKUP_NORMAL); } -/* Subroutine of build_type_conversion. */ - -static tree -build_type_conversion_1 (xtype, basetype, expr, typename, for_sure) - tree xtype, basetype; - tree expr; - tree typename; - int for_sure; -{ - tree rval; - int flags; - - if (for_sure == 0) - flags = LOOKUP_PROTECT|LOOKUP_ONLYCONVERTING; - else - flags = LOOKUP_NORMAL|LOOKUP_ONLYCONVERTING; - - rval = build_method_call (expr, typename, NULL_TREE, NULL_TREE, flags); - if (rval == error_mark_node) - { - if (for_sure == 0) - return NULL_TREE; - return error_mark_node; - } - - if (IS_AGGR_TYPE (TREE_TYPE (rval))) - return rval; - - if (warn_cast_qual - && TREE_TYPE (xtype) - && (TREE_READONLY (TREE_TYPE (TREE_TYPE (rval))) - > TREE_READONLY (TREE_TYPE (xtype)))) - warning ("user-defined conversion casting away `const'"); - return cp_convert (xtype, rval); -} - /* Convert an aggregate EXPR to type XTYPE. If a conversion exists, return the attempted conversion. This may return ERROR_MARK_NODE if the conversion is not