diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-11 21:10:00 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-11 21:10:00 +0000 |
commit | 0b5213559d10fca2937b4ef8c9722523bc29648b (patch) | |
tree | 70e569fabd7c20b1d482290090569a1e037d0fb9 /gcc | |
parent | 0d86b7af93844f64e5357635b8a76e4bd7c123ff (diff) | |
download | gcc-0b5213559d10fca2937b4ef8c9722523bc29648b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cfganal.c | 2 | ||||
-rw-r--r-- | gcc/genautomata.c | 2 | ||||
-rw-r--r-- | gcc/real.h | 6 | ||||
-rw-r--r-- | gcc/tree.c | 4 |
5 files changed, 16 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a8f85a7012..618f7a294b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/cfganal.c b/gcc/cfganal.c index b54619ba624..7aeef93accd 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -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; diff --git a/gcc/genautomata.c b/gcc/genautomata.c index e6b231f8c4e..206b7eee58a 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -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; diff --git a/gcc/real.h b/gcc/real.h index fc84a109281..59340f7d905 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -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; diff --git a/gcc/tree.c b/gcc/tree.c index 202b07b8eb0..dac15adaa71 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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; } |