diff options
author | Manfred Hollstein <manfred@s-direktnet.de> | 1998-03-12 00:02:51 +0000 |
---|---|---|
committer | Manfred Hollstein <manfred@gcc.gnu.org> | 1998-03-12 00:02:51 +0000 |
commit | 8506650392e4e0269e576c6331da763d79196e34 (patch) | |
tree | c0b0ead5f1ce5f7f4353a9bf27608bce69b66548 /gcc/toplev.c | |
parent | 5ae9a7e94aa1c9abd7b61bb4df579bedecec749c (diff) | |
download | gcc-8506650392e4e0269e576c6331da763d79196e34.tar.gz |
c-decl (finish_struct): Change type of min_align to unsigned.
d
gcc/ChangeLog:
* c-decl (finish_struct): Change type of min_align to unsigned.
* cplus-dem.c (demangle_function_name): Change type of variable i to size_t;
remove unused variable len.
* dwarf2out.c (reg_save): Add explicit cast of -1 to unsigned and a
comment indicating this is proper behaviour.
(reg_loc_descriptor): Remove redundant comparison of unsigned variable
reg >= 0.
(based_loc_descr): Likewise.
* enquire.c (bitpattern): Change type of variable i to unsigned.
* final.c (output_asm_insn): Don't cast insn_noperands to unsigned.
* flow.c (life_analysis): Change type of variable i to size_t;
remove unused variable insn.
* gcc.c (translate_options): Change type of variables optlen, arglen and
complen to size_t.
(input_filename_length): Change type to size_t.
(do_spec_1): Change type of variable bufsize to size_t.
(main): Change type of variables i and j to size_t;
remove subblock local definition of variable i.
(lookup_compiler): Change type of second argument to size_t;
change type of variable i to size_t.
* genemit.c (output_init_mov_optab): Change type of variable i to size_t.
* genopinit.c (get_insn): Change type of variable pindex to size_t.
* genrecog.c (add_to_sequence): Change type of variable i to size_t.
* global.c (global_alloc): Change type of variable i to size_t.
* regclass.c (init_reg_sets): Change type of variables i and j to unsigned.
* stmt.c (expand_end_bindings): Change type of variable i to size_t.
(expand_end_case): Change type of variable count to size_t.
* toplev.c (main): Change type of variable j to size_t.
(set_target_switch): Change type of variable j to size_t.
(print_switch_values): Change type of variable j to size_t;
remove unused variable flags.
* varasm.c (assemble_variable): Change type of variable align to size_t.
(const_hash_rtx): Change type of variable i to size_t.
gcc/cp/ChangeLog:
Sun Mar 8 17:13:38 1998 Manfred Hollstein <manfred@s-direktnet.de>
* decl2.c (lang_decode_option): Change j's type to size_t.
* tree.c (layout_vbasetypes): record_align and desired_align are of
type unsigned int; const_size and nonvirtual_const_size likewise.
From-SVN: r18490
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 1922384881e..70dddc24bd3 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3819,7 +3819,7 @@ main (argc, argv, envp) for (i = 1; i < argc; i++) { - int j; + size_t j; /* If this is a language-specific option, decode it in a language-specific way. */ for (j = 0; lang_options[j] != 0; j++) @@ -4411,7 +4411,7 @@ void set_target_switch (name) char *name; { - register int j; + register size_t j; int valid = 0; for (j = 0; j < sizeof target_switches / sizeof target_switches[0]; j++) @@ -4504,7 +4504,7 @@ print_switch_values (file, pos, max, indent, sep, term) int pos, max; char *indent, *sep, *term; { - int j, flags; + size_t j; char **p; /* Print the options as passed. */ @@ -4548,7 +4548,6 @@ print_switch_values (file, pos, max, indent, sep, term) /* Print target specific options. */ - flags = target_flags; for (j = 0; j < sizeof target_switches / sizeof target_switches[0]; j++) if (target_switches[j].name[0] != '\0' && target_switches[j].value > 0 @@ -4557,7 +4556,6 @@ print_switch_values (file, pos, max, indent, sep, term) { pos = print_single_switch (file, pos, max, indent, sep, term, "-m", target_switches[j].name); - flags &= ~ target_switches[j].value; } #ifdef TARGET_OPTIONS |