diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42fd508ba72..e631babdb1b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-02-27 Zack Weinberg + + * c-typeck.c (digest_init): Remove unused parameter; all + callers changed. + 2002-02-27 Geoffrey Keating * expmed.c (expand_shift): Correctly test for low part of a diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 780a3f2ce82..0ecc4dbd394 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -73,7 +73,7 @@ static void push_array_bounds PARAMS ((int)); static int spelling_length PARAMS ((void)); static char *print_spelling PARAMS ((char *)); static void warning_init PARAMS ((const char *)); -static tree digest_init PARAMS ((tree, tree, int, int)); +static tree digest_init PARAMS ((tree, tree, int)); static void output_init_element PARAMS ((tree, tree, tree, int)); static void output_pending_init_elements PARAMS ((int)); static int set_designator PARAMS ((int)); @@ -3659,8 +3659,7 @@ build_c_cast (type, expr) else name = ""; t = digest_init (type, build (CONSTRUCTOR, type, NULL_TREE, - build_tree_list (field, value)), - 0, 0); + build_tree_list (field, value)), 0); TREE_CONSTANT (t) = TREE_CONSTANT (value); return t; } @@ -4345,8 +4344,7 @@ store_init_value (decl, init) /* Digest the specified initializer into an expression. */ - value = digest_init (type, init, TREE_STATIC (decl), - TREE_STATIC (decl) || (pedantic && !flag_isoc99)); + value = digest_init (type, init, TREE_STATIC (decl)); /* Store the expression if valid; else report error. */ @@ -4607,14 +4605,13 @@ warning_init (msgid) /* Digest the parser output INIT as an initializer for type TYPE. Return a C expression of type TYPE to represent the initial value. - The arguments REQUIRE_CONSTANT and CONSTRUCTOR_CONSTANT request errors - if non-constant initializers or elements are seen. CONSTRUCTOR_CONSTANT - applies only to elements of constructors. */ + REQUIRE_CONSTANT requests an error if non-constant initializers or + elements are seen. */ static tree -digest_init (type, init, require_constant, constructor_constant) +digest_init (type, init, require_constant) tree type, init; - int require_constant, constructor_constant; + int require_constant; { enum tree_code code = TREE_CODE (type); tree inside_init = init; @@ -6189,8 +6186,7 @@ output_init_element (value, type, field, pending) || TREE_CHAIN (field))))) return; - value = digest_init (type, value, require_constant_value, - require_constant_elements); + value = digest_init (type, value, require_constant_value); if (value == error_mark_node) { constructor_erroneous = 1;