Commit 97d05bfd by Ulrich Weigand Committed by Ulrich Weigand

c-opts.c (missing_arg): Use cl_options[opt_index].opt_code instead of just…

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
parent aaee784a
2002-10-21 Ulrich Weigand <uweigand@de.ibm.com> 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. * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
(__fixunssfdi, __fixsfdi): Likewise. (__fixunssfdi, __fixsfdi): Likewise.
* config/s390/s390.c (s390_single_hi): Initialize 'value'. * config/s390/s390.c (s390_single_hi): Initialize 'value'.
......
...@@ -339,7 +339,7 @@ missing_arg (opt_index) ...@@ -339,7 +339,7 @@ missing_arg (opt_index)
{ {
const char *opt_text = cl_options[opt_index].opt_text; 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_Wformat_eq:
case OPT_d: case OPT_d:
......
...@@ -4542,7 +4542,7 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space) ...@@ -4542,7 +4542,7 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space)
parm_align = BITS_PER_UNIT; parm_align = BITS_PER_UNIT;
else if (excess) 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); parm_align = MIN (parm_align, excess_align);
} }
} }
......
...@@ -221,7 +221,7 @@ output_gcov_string (string, delimiter) ...@@ -221,7 +221,7 @@ output_gcov_string (string, delimiter)
const char *string; const char *string;
long delimiter; long delimiter;
{ {
long temp; size_t temp;
/* Write a delimiter to indicate that a file name follows. */ /* Write a delimiter to indicate that a file name follows. */
__write_long (delimiter, bb_file, 4); __write_long (delimiter, bb_file, 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment