summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-21 20:24:57 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-21 20:24:57 +0000
commit2839725565b8a5f5e104b261ad1cfdfa70cad2e6 (patch)
tree0ed8c8a532e5ab6d57554e6870c2e75b3661617f
parent878b2d705a2184a6d17fd7a704444dff1d9fe5e9 (diff)
downloadgcc-2839725565b8a5f5e104b261ad1cfdfa70cad2e6.tar.gz
* c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
instead of just opt_index as switch expression. * calls.c (store_one_arg): Change type of 'excess_align' to unsigned int. * profile.c (output_gcov_string): Change type of 'temp' to size_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58381 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/c-opts.c2
-rw-r--r--gcc/calls.c2
-rw-r--r--gcc/profile.c2
4 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d72b90e7d62..6f75f843474 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,16 @@
2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
+ * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
+ instead of just opt_index as switch expression.
+
+ * calls.c (store_one_arg): Change type of 'excess_align'
+ to unsigned int.
+
+ * profile.c (output_gcov_string): Change type of 'temp'
+ to size_t.
+
+2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
+
* config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
(__fixunssfdi, __fixsfdi): Likewise.
* config/s390/s390.c (s390_single_hi): Initialize 'value'.
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 2de8faad4ef..5a781df4ebe 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -339,7 +339,7 @@ missing_arg (opt_index)
{
const char *opt_text = cl_options[opt_index].opt_text;
- switch (opt_index)
+ switch (cl_options[opt_index].opt_code)
{
case OPT_Wformat_eq:
case OPT_d:
diff --git a/gcc/calls.c b/gcc/calls.c
index 903ddc17fe9..abe3012a789 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -4542,7 +4542,7 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space)
parm_align = BITS_PER_UNIT;
else if (excess)
{
- int excess_align = (excess & -excess) * BITS_PER_UNIT;
+ unsigned int excess_align = (excess & -excess) * BITS_PER_UNIT;
parm_align = MIN (parm_align, excess_align);
}
}
diff --git a/gcc/profile.c b/gcc/profile.c
index 60327947c2e..fd1f4241ef8 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -221,7 +221,7 @@ output_gcov_string (string, delimiter)
const char *string;
long delimiter;
{
- long temp;
+ size_t temp;
/* Write a delimiter to indicate that a file name follows. */
__write_long (delimiter, bb_file, 4);