From: Ulrich Weigand Date: Mon, 21 Oct 2002 20:24:57 +0000 (+0000) Subject: c-opts.c (missing_arg): Use cl_options[opt_index].opt_code instead of just opt_index... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97d05bfdd2480b13c36ea215b45030168c613b04;p=gcc.git c-opts.c (missing_arg): Use cl_options[opt_index].opt_code instead of just opt_index as switch expression. * 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. From-SVN: r58381 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d72b90e7d62..6f75f843474 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2002-10-21 Ulrich Weigand + + * 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 * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes. 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);