aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:02:52 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:02:52 +0000
commitf8344bea51379fdab43668c99099b48d6d3e3681 (patch)
treec9fd5e9d1380dfbaf5eb558fce6389ca8413a0d1 /gcc/cp/tree.c
parent8506650392e4e0269e576c6331da763d79196e34 (diff)
downloadgcc-f8344bea51379fdab43668c99099b48d6d3e3681.zip
gcc-f8344bea51379fdab43668c99099b48d6d3e3681.tar.gz
gcc-f8344bea51379fdab43668c99099b48d6d3e3681.tar.bz2
c-decl (finish_struct): Change type of min_align to unsigned.
a 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: r18491
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 8fb0c9f..4fb1724 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -648,20 +648,20 @@ layout_vbasetypes (rec, max)
tree vbase_types = get_vbase_types (rec);
#ifdef STRUCTURE_SIZE_BOUNDARY
- unsigned record_align = MAX (STRUCTURE_SIZE_BOUNDARY, TYPE_ALIGN (rec));
+ unsigned int record_align = MAX (STRUCTURE_SIZE_BOUNDARY, TYPE_ALIGN (rec));
#else
- unsigned record_align = MAX (BITS_PER_UNIT, TYPE_ALIGN (rec));
+ unsigned int record_align = MAX (BITS_PER_UNIT, TYPE_ALIGN (rec));
#endif
- int desired_align;
+ unsigned int desired_align;
/* Record size so far is CONST_SIZE + VAR_SIZE bits,
where CONST_SIZE is an integer
and VAR_SIZE is a tree expression.
If VAR_SIZE is null, the size is just CONST_SIZE.
Naturally we try to avoid using VAR_SIZE. */
- register unsigned const_size = 0;
+ register unsigned int const_size = 0;
register tree var_size = 0;
- int nonvirtual_const_size;
+ unsigned int nonvirtual_const_size;
CLASSTYPE_VBASECLASSES (rec) = vbase_types;
@@ -809,7 +809,8 @@ layout_basetypes (rec, binfos)
for (i = 0; i < n_baseclasses; i++)
{
- int inc, desired_align, int_vbase_size;
+ int inc, int_vbase_size;
+ unsigned int desired_align;
register tree base_binfo = TREE_VEC_ELT (binfos, i);
register tree basetype = BINFO_TYPE (base_binfo);
tree decl, offset;