expr.c (can_widen_reference_to): Fixed indentation.

2000-08-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* expr.c (can_widen_reference_to): Fixed indentation.
	* java-tree.h (CLASS_METHOD_CHECKED_P): Added leading comment.
	* parse.y: `finit$' replaces `$finit$' in comments.
	(try_builtin_assignconv): Fixed leading comment.

(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg01246.html)

From-SVN: r36039
This commit is contained in:
Alexandre Petit-Bianco 2000-08-29 16:43:31 +00:00 committed by Alexandre Petit-Bianco
parent 4361b41d83
commit c00f0fb22b
4 changed files with 26 additions and 17 deletions

View File

@ -1,3 +1,10 @@
2000-08-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (can_widen_reference_to): Fixed indentation.
* java-tree.h (CLASS_METHOD_CHECKED_P): Added leading comment.
* parse.y: `finit$' replaces `$finit$' in comments.
(try_builtin_assignconv): Fixed leading comment.
2000-08-25 Greg McGary <greg@mcgary.org> 2000-08-25 Greg McGary <greg@mcgary.org>
* gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE. * gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE.

View File

@ -406,8 +406,8 @@ can_widen_reference_to (source_type, target_type)
(TREE_TYPE (TREE_VEC_ELT (basetype_vec, i)), (TREE_TYPE (TREE_VEC_ELT (basetype_vec, i)),
target_type)) target_type))
return 1; return 1;
if (n == 0) if (n == 0)
return 0; return 0;
} }
for ( ; source_depth > target_depth; source_depth--) for ( ; source_depth > target_depth; source_depth--)

View File

@ -1011,6 +1011,8 @@ extern tree *type_map;
initialization during its declaration */ initialization during its declaration */
#define MODIFY_EXPR_FROM_INITIALIZATION_P(EXPR) TREE_LANG_FLAG_2 (EXPR) #define MODIFY_EXPR_FROM_INITIALIZATION_P(EXPR) TREE_LANG_FLAG_2 (EXPR)
/* True if EXPR (a TREE_TYPE denoting a class type) has its methods
already checked (for redifitions, etc, see java_check_regular_methods.) */
#define CLASS_METHOD_CHECKED_P(EXPR) TREE_LANG_FLAG_2 (EXPR) #define CLASS_METHOD_CHECKED_P(EXPR) TREE_LANG_FLAG_2 (EXPR)
/* True if EXPR (a WFL in that case) resolves into an expression name */ /* True if EXPR (a WFL in that case) resolves into an expression name */

View File

@ -2764,7 +2764,7 @@ java_parser_context_push_initialized_field ()
} }
/* Pop the lists of initialized field. If this lists aren't empty, /* Pop the lists of initialized field. If this lists aren't empty,
remember them so we can use it to create and populate the $finit$ remember them so we can use it to create and populate the finit$
or <clinit> functions. */ or <clinit> functions. */
static void static void
@ -3858,7 +3858,7 @@ create_class (flags, id, super, interfaces)
} }
/* End a class declaration: register the statements used to create /* End a class declaration: register the statements used to create
$finit$ and <clinit>, pop the current class and resume the prior finit$ and <clinit>, pop the current class and resume the prior
parser context if necessary. */ parser context if necessary. */
static void static void
@ -3916,9 +3916,9 @@ add_inner_class_fields (class_decl, fct_decl)
wfl = build_wfl_node (get_identifier (name)); wfl = build_wfl_node (get_identifier (name));
init = build_wfl_node (get_identifier (pname)); init = build_wfl_node (get_identifier (pname));
/* Build an initialization for the field: it will be /* Build an initialization for the field: it will be
initialized by a parameter added to $finit$, bearing a initialized by a parameter added to finit$, bearing a
mangled name of the field itself (param$<n>.) The mangled name of the field itself (param$<n>.) The
parameter is provided to $finit$ by the constructor parameter is provided to finit$ by the constructor
invoking it (hence the constructor will also feature a invoking it (hence the constructor will also feature a
hidden parameter, set to the value of the outer context hidden parameter, set to the value of the outer context
local at the time the inner class is created.) local at the time the inner class is created.)
@ -3927,7 +3927,7 @@ add_inner_class_fields (class_decl, fct_decl)
be accessed by the inner class. It's actually not trivial be accessed by the inner class. It's actually not trivial
to minimize these aliases down to the ones really to minimize these aliases down to the ones really
used. One way to do that would be to expand all regular used. One way to do that would be to expand all regular
methods first, then $finit$ to get a picture of what's methods first, then finit$ to get a picture of what's
used. It works with the exception that we would have to used. It works with the exception that we would have to
go back on all constructor invoked in regular methods to go back on all constructor invoked in regular methods to
have their invokation reworked (to include the right amount have their invokation reworked (to include the right amount
@ -3939,7 +3939,7 @@ add_inner_class_fields (class_decl, fct_decl)
use. use.
On the other hand, it only affect local inner classes, On the other hand, it only affect local inner classes,
whose constructors (and $finit$ call) will be featuring whose constructors (and finit$ call) will be featuring
unecessary arguments. It's easy for a developper to keep unecessary arguments. It's easy for a developper to keep
this number of parameter down by using the `final' this number of parameter down by using the `final'
keyword only when necessary. For the time being, we can keyword only when necessary. For the time being, we can
@ -4145,7 +4145,7 @@ register_fields (flags, type, variable_list)
/* If the couple initializer/initialized is marked ARG_FINAL_P, we /* If the couple initializer/initialized is marked ARG_FINAL_P, we
mark the created field FIELD_LOCAL_ALIAS, so that we can mark the created field FIELD_LOCAL_ALIAS, so that we can
hide parameters to this inner class $finit$ and constructors. */ hide parameters to this inner class finit$ and constructors. */
if (ARG_FINAL_P (current)) if (ARG_FINAL_P (current))
FIELD_LOCAL_ALIAS (field_decl) = 1; FIELD_LOCAL_ALIAS (field_decl) = 1;
@ -4186,8 +4186,8 @@ register_fields (flags, type, variable_list)
lineno = saved_lineno; lineno = saved_lineno;
} }
/* Generate $finit$, using the list of initialized fields to populate /* Generate finit$, using the list of initialized fields to populate
its body. $finit$'s parameter(s) list is adjusted to include the its body. finit$'s parameter(s) list is adjusted to include the
one(s) used to initialized the field(s) caching outer context one(s) used to initialized the field(s) caching outer context
local(s). */ local(s). */
@ -5000,7 +5000,7 @@ java_check_circular_reference ()
count is kept of the number of crafted parameters. MODE governs count is kept of the number of crafted parameters. MODE governs
what eventually gets created: something suitable for a function what eventually gets created: something suitable for a function
creation or a function invocation, either the constructor or creation or a function invocation, either the constructor or
$finit$. */ finit$. */
static tree static tree
build_alias_initializer_parameter_list (mode, class_type, parm, artificial) build_alias_initializer_parameter_list (mode, class_type, parm, artificial)
@ -5795,7 +5795,7 @@ check_method_redefinition (class, method)
tree redef, name; tree redef, name;
tree cl = DECL_NAME (method); tree cl = DECL_NAME (method);
tree sig = TYPE_ARGUMENT_SIGNATURE (TREE_TYPE (method)); tree sig = TYPE_ARGUMENT_SIGNATURE (TREE_TYPE (method));
/* decl name of artificial <clinit> and $finit$ doesn't need to be /* decl name of artificial <clinit> and finit$ doesn't need to be
fixed and checked */ fixed and checked */
/* Reset the method name before running the check. If it returns 1, /* Reset the method name before running the check. If it returns 1,
@ -7393,7 +7393,7 @@ java_complete_expand_class (outer)
we expand regular methods first. This allows us get an estimate on we expand regular methods first. This allows us get an estimate on
how outer context local alias fields are really used so we can add how outer context local alias fields are really used so we can add
to the constructor just enough code to initialize them properly (it to the constructor just enough code to initialize them properly (it
also lets us generate $finit$ correctly.) Then we expand the also lets us generate finit$ correctly.) Then we expand the
constructors and then <clinit>. */ constructors and then <clinit>. */
static void static void
@ -7414,7 +7414,7 @@ java_complete_expand_methods (class_decl)
first_decl = TYPE_METHODS (current_class); first_decl = TYPE_METHODS (current_class);
clinit = maybe_generate_pre_expand_clinit (current_class); clinit = maybe_generate_pre_expand_clinit (current_class);
/* Then generate $finit$ (if we need to) because constructor will /* Then generate finit$ (if we need to) because constructor will
try to use it.*/ try to use it.*/
if (TYPE_FINIT_STMT_LIST (current_class)) if (TYPE_FINIT_STMT_LIST (current_class))
{ {
@ -9884,7 +9884,7 @@ patch_method_invocation (patch, primary, where, is_static, ret_decl)
{ {
tree finit_parms, finit_call; tree finit_parms, finit_call;
/* Prepare to pass hidden parameters to $finit$, if any. */ /* Prepare to pass hidden parameters to finit$, if any. */
finit_parms = build_alias_initializer_parameter_list finit_parms = build_alias_initializer_parameter_list
(AIPL_FUNCTION_FINIT_INVOCATION, current_class, NULL_TREE, NULL); (AIPL_FUNCTION_FINIT_INVOCATION, current_class, NULL_TREE, NULL);
@ -12173,7 +12173,7 @@ try_builtin_assignconv (wfl_op1, lhs_type, rhs)
} }
/* Return 1 if RHS_TYPE can be converted to LHS_TYPE by identity /* Return 1 if RHS_TYPE can be converted to LHS_TYPE by identity
conversion (5.1.1) or widening primitve conversion (5.1.2). Return conversion (5.1.1) or widening primitive conversion (5.1.2). Return
0 is the conversion test fails. This implements parts the method 0 is the conversion test fails. This implements parts the method
invocation convertion (5.3). */ invocation convertion (5.3). */