]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cfganal.c (dfs_enumerate_from): Use PARAMS.
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Fri, 11 Oct 2002 21:10:00 +0000 (21:10 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 11 Oct 2002 21:10:00 +0000 (21:10 +0000)
* cfganal.c (dfs_enumerate_from): Use PARAMS.
* genautomata.c (output_insn_code_cases): Likewise.
* real.c (real_format): Likewise.
* tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
ensure value is promoted before doing subtraction.

From-SVN: r58064

gcc/ChangeLog
gcc/cfganal.c
gcc/genautomata.c
gcc/real.h
gcc/tree.c

index 6a8f85a7012517508bf9323c48a668e5388e4114..618f7a294b51881d5deda5f0149529c832c9e52d 100644 (file)
@@ -1,3 +1,11 @@
+2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * cfganal.c (dfs_enumerate_from): Use PARAMS.
+       * genautomata.c (output_insn_code_cases): Likewise.
+       * real.c (real_format): Likewise.
+       * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
+       ensure value is promoted before doing subtraction.
+
 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * calls.c (expand_call): Simplify noreturn call.
index b54619ba624be08ae41a2204da971f91f96703e5..7aeef93accd3b3e0b77defc04a131606537740e9 100644 (file)
@@ -1134,7 +1134,7 @@ int
 dfs_enumerate_from (bb, reverse, predicate, rslt, rslt_max, data)
      basic_block bb;
      int reverse;
-     bool (*predicate) (basic_block, void *);
+     bool (*predicate) PARAMS ((basic_block, void *));
      basic_block *rslt;
      int rslt_max;
      void *data;
index e6b231f8c4ea9df152820f6d18ef6407d0671611..206b7eee58a63440e687f8ae377b21740fc33062 100644 (file)
@@ -7990,7 +7990,7 @@ output_max_insn_queue_index_def ()
    function *output_automata_list_code.  */
 static void
 output_insn_code_cases (output_automata_list_code)
-     void (*output_automata_list_code) (automata_list_el_t);
+     void (*output_automata_list_code) PARAMS ((automata_list_el_t));
 {
   decl_t decl, decl2;
   int i, j;
index fc84a109281a2ad96acf32cfecdcfdddfd5614e1..59340f7d905cbe9547e57f779e2e0bf38147ddc3 100644 (file)
@@ -104,8 +104,10 @@ extern char test_real_width
 struct real_format
 {
   /* Move to and from the target bytes.  */
-  void (*encode) (const struct real_format *, long *, const REAL_VALUE_TYPE *);
-  void (*decode) (const struct real_format *, REAL_VALUE_TYPE *, const long *);
+  void (*encode) PARAMS ((const struct real_format *, long *,
+                         const REAL_VALUE_TYPE *));
+  void (*decode) PARAMS ((const struct real_format *, REAL_VALUE_TYPE *,
+                         const long *));
 
   /* The radix of the exponent and digits of the significand.  */
   int b;
index 202b07b8eb03e0dbd486c3b0cc6053eef0489aaa..dac15adaa7138296b640dd29876eac46ea36c463 100644 (file)
@@ -177,7 +177,7 @@ tree_size (node)
     case '1':  /* a unary arithmetic expression */
     case '2':  /* a binary arithmetic expression */
       return (sizeof (struct tree_exp)
-             + (TREE_CODE_LENGTH (code) - 1) * sizeof (char *));
+             + TREE_CODE_LENGTH (code) * sizeof (char *) - sizeof (char *));
 
     case 'c':  /* a constant */
       /* We can't use TREE_CODE_LENGTH for INTEGER_CST, since the number of
@@ -199,7 +199,7 @@ tree_size (node)
        length = (sizeof (struct tree_common)
                  + TREE_CODE_LENGTH (code) * sizeof (char *));
        if (code == TREE_VEC)
-         length += (TREE_VEC_LENGTH (node) - 1) * sizeof (char *);
+         length += TREE_VEC_LENGTH (node) * sizeof (char *) - sizeof (char *);
        return length;
       }