aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@s-direktnet.de>1998-03-12 00:02:51 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:02:51 +0000
commit8506650392e4e0269e576c6331da763d79196e34 (patch)
treec0b0ead5f1ce5f7f4353a9bf27608bce69b66548 /gcc/gcc.c
parent5ae9a7e94aa1c9abd7b61bb4df579bedecec749c (diff)
downloadgcc-8506650392e4e0269e576c6331da763d79196e34.zip
gcc-8506650392e4e0269e576c6331da763d79196e34.tar.gz
gcc-8506650392e4e0269e576c6331da763d79196e34.tar.bz2
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/gcc.c')
-rw-r--r--gcc/gcc.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 5f53c246..5d2855d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -217,7 +217,7 @@ struct path_prefix;
static void init_spec PROTO((void));
static void read_specs PROTO((char *, int));
static void set_spec PROTO((char *, char *));
-static struct compiler *lookup_compiler PROTO((char *, int, char *));
+static struct compiler *lookup_compiler PROTO((char *, size_t, char *));
static char *build_search_list PROTO((struct path_prefix *, char *, int));
static void putenv_from_prefixes PROTO((struct path_prefix *, char *));
static char *find_a_file PROTO((struct path_prefix *, char *, int));
@@ -861,9 +861,9 @@ translate_options (argcp, argvp)
/* Find a mapping that applies to this option. */
for (j = 0; j < sizeof (option_map) / sizeof (option_map[0]); j++)
{
- int optlen = strlen (option_map[j].name);
- int arglen = strlen (argv[i]);
- int complen = arglen > optlen ? optlen : arglen;
+ size_t optlen = strlen (option_map[j].name);
+ size_t arglen = strlen (argv[i]);
+ size_t complen = arglen > optlen ? optlen : arglen;
char *arginfo = option_map[j].arg_info;
if (arginfo == 0)
@@ -3014,7 +3014,7 @@ process_command (argc, argv)
static char *input_filename;
static int input_file_number;
-static int input_filename_length;
+static size_t input_filename_length;
static int basename_length;
static char *input_basename;
static char *input_suffix;
@@ -3210,7 +3210,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
case 'D':
{
struct prefix_list *pl = startfile_prefixes.plist;
- int bufsize = 100;
+ size_t bufsize = 100;
char *buffer = (char *) xmalloc (bufsize);
int idx;
@@ -4299,8 +4299,8 @@ main (argc, argv)
int argc;
char **argv;
{
- register int i;
- int j;
+ register size_t i;
+ size_t j;
int value;
int linker_was_run = 0;
char *explicit_link_files;
@@ -4392,7 +4392,6 @@ main (argc, argv)
process_command (argc, argv);
{
- int i;
int first_time;
/* Build COLLECT_GCC_OPTIONS to have all of the options specified to
@@ -4778,7 +4777,7 @@ main (argc, argv)
static struct compiler *
lookup_compiler (name, length, language)
char *name;
- int length;
+ size_t length;
char *language;
{
struct compiler *cp;
@@ -5045,7 +5044,7 @@ validate_all_switches ()
for (comp = compilers; comp->spec[0]; comp++)
{
- int i;
+ size_t i;
for (i = 0; i < sizeof comp->spec / sizeof comp->spec[0] && comp->spec[i]; i++)
{
p = comp->spec[i];