summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2002-02-27 22:14:59 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-02-27 22:14:59 +0000
commit273cf2e46293b990b50d24866f2b37058702b8be (patch)
treeab2e900cb76ea9746906b1b9ce1dd323267c57ad /gcc
parentffde66754357f637be61248e52b39beeadf65c95 (diff)
downloadgcc-273cf2e46293b990b50d24866f2b37058702b8be.tar.gz
c-typeck.c (digest_init): Remove unused parameter; all callers changed.
* c-typeck.c (digest_init): Remove unused parameter; all callers changed. From-SVN: r50118
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c20
2 files changed, 13 insertions, 12 deletions
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 <zack@codesourcery.com>
+
+ * c-typeck.c (digest_init): Remove unused parameter; all
+ callers changed.
+
2002-02-27 Geoffrey Keating <geoffk@redhat.com>
* 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;