]> gcc.gnu.org Git - gcc.git/commitdiff
c-typeck.c (digest_init): Remove unused parameter; all callers changed.
authorZack Weinberg <zack@codesourcery.com>
Wed, 27 Feb 2002 22:14:59 +0000 (22:14 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 27 Feb 2002 22:14:59 +0000 (22:14 +0000)
* c-typeck.c (digest_init): Remove unused parameter; all
callers changed.

From-SVN: r50118

gcc/ChangeLog
gcc/c-typeck.c

index 42fd508ba72c62bbc410512353595c5ecb952d50..e631babdb1b1a8937229a331c23774d191ef94c7 100644 (file)
@@ -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
index 780a3f2ce821e1ff031f0e786654603bdfd17f82..0ecc4dbd394ae8ee14b8cd85930ed3acab4ed2dc 100644 (file)
@@ -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;
This page took 0.083079 seconds and 5 git commands to generate.