1. 13 Mar, 2000 1 commit
  2. 12 Mar, 2000 1 commit
  3. 11 Mar, 2000 1 commit
  4. 10 Mar, 2000 2 commits
  5. 09 Mar, 2000 1 commit
  6. 08 Mar, 2000 1 commit
  7. 07 Mar, 2000 2 commits
    • tree.h (INT_CST_LT, [...]): Remove unneeded casts. · 05bccae2
      	* tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
      	(struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
      	(attribute_hash_list, type_hash_canon): hashcode is now unsigned.
      	(type_hash_lookup, type_hash_add, type_hash_list): Likewise.
      	(min_precision): Result is unsignd.
      	(add_double, neg_double, mul_double): Low word is unsigned.
      	(lshift_double, rshift_double, lrotate_double): Likewise.
      	(rrotate_double, div_and_round_double): Likewise.
      	(tree_floor_log2, compare_tree_int): New functions.
      	(preserve_rtl_expr_temps): New declaration.
      	* c-common.c (declare_hidden_char_array): Use compare_tree_int.
      	(decl_attributes): Use tree_log2 to find alignment.
      	Check for TREE_INT_CST_HIGH for format args.
      	(min_precision): Now unsigned.
      	Use tree_floor_log2.
      	(truthvalue_conversion): Delete long-disabled code.
      	* c-decl.c (finish_struct): Clean up tests on field width.
      	(finish_function): Use compare_tree_int.
      	* c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
      	* c-typeck.c (comptypes): Use tree_int_cst_equal.
      	(default_conversion, digest_init): Use compare_tree_int.
      	(build_binary_op): Use integer_all_onesp and compare_tree_int.
      	Fix type errors in forming masks.
      	* calls.c (initialize_argument_information): Use compare_tree_int.
      	* dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
      	* except.c (expand_eh_region_start_tree): Use compare_tree_int.
      	* expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
      	(store_field): Use compare_tree_int.
      	(expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
      	(expand_expr, case ARRAY_REF): Use compare_tree_int.
      	(do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
      	(do_store_flag): Use compare_tree_int.
      	* fold-const.c (encode, decode): Low part is always unsigned.
      	(force_fit_type, add_double, neg_double, mul_double): Likewise.
      	(lshift_double, rshift_double, lrotate_double): Likewise.
      	(rrotate_double, div_and_round_double, int_const_binop): Likewise.
      	(fold_convert): Use compare_tree_int.
      	(operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
      	(invert_truthvalue, case INTEGER_CST): Likewise.
      	(fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
      	* mkdeps.c (deps_dummy_targets): Make I unsigned.
      	* rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
      	(lshift_double, rshift_double, lrotate_double, rrotate_double):
      	Likewise.
      	* stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
      	(expand_end_case): Use compare_tree_int.
      	(estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
      	* stor-layout.c (mode_for_size_tree): Use compare_tree_int.
      	(layout_decl): Likewise.
      	(layout_record, layout_union): Make sizes unsigned.
      	(layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
      	(layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
      	* tree.c (struct type_hash): hashcode is unsigned.
      	(build_type_attribute_variant, type_hash_list): Likewise.
      	(type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
      	(attribute_hash_list, build_array_type, build_method_type): Likewise.
      	(build_complex_type): Likewise.
      	(real_value_from_int_cst): Remove unneeded casts.
      	(integer_all_onesp): Add casts.
      	(tree_floor_log2, compare_tree_int): New functions.
      	(build_index_type): Use tree_int_cst_sgn.
      	* varasm.c (assemble_variable): Use compare_tree_int.
      	* ch/actions.c (chill_convert_for_assignment): INDEX is unsigned
      	HOST_WIDE_INT.
      	* ch/ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH
      	since unsigned.
      	* ch/except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
      	Use compare_tree_int.
      	(expand_goto_except_cleanup): Likewise.
      	* cp/class.c (dfs_modify_vtables): I is now unsigned.
      	(check_bitfield_decl): Use tree_int_cst_sgn and compare_tree_int.
      	(build_base_field): Add casts of TREE_INT_CST_LOW to HOST_WIDE_INT.
      	* cp/error.c (dump_expr): Cast TREE_INT_CST_HIGH to unsigned.
      	* cp/init.c (build_vec_init): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
      	* cp/method.c (build_overload_int): Cast TREE_INT_CST_HIGH to unsigned.
      	* cp/typeck.c (build_binary_op, case TRUNC_DIV_EXPR):
      	Call integer_all_onesp.
      	* cp/typeck2.c (process_init_constructor): Use compare_tree_int.
      	* f/com.c (ffecom_f2c_set_lio_code_): Use compare_tree_int.
      	(ffecom_sym_transform_, ffecom_transform_common_): Likewise.
      	(ffecom_transform_equiv_): Likewise.
      	* java/decl.c (emit_init_test_initialization): Mark KEY as unused.
      	* java/expr.c (build_newarray): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
      	(build_anewarray): Likewise.
      	* java/parse.y (patch_newarray): Likewise.
      	* java/parse.c: Regenerated.
      
      From-SVN: r32383
      Richard Kenner committed
    • Daily bump. · f2d2acce
      From-SVN: r32380
      Jeff Law committed
  8. 06 Mar, 2000 2 commits
    • builtins.c (built_in_class_names, [...]): Constify a char*. · fd05eb80
      	* builtins.c (built_in_class_names, built_in_names): Constify a
      	char*.
      
      	* gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
      	int.
      	(_mcleanup): Ensure value matches format specifier in sprintf.
      
      	* cpphash.c (special_symbol): Don't needlessly cast away
      	const-ness.
      
      	* cppinit.c (base_name): Delete unused prototype.
      
      	* mkdeps.c (deps_init): Make definition K&R safe.
      
      	* tree.h (built_in_class_names, built_in_names): Constify a
      	char*.
      
      f:
      	* ansify.c (die_unless): Don't use ANSI string concatenation.
      	(die): Mark with ATTRIBUTE_NORETURN.
      
      From-SVN: r32364
      Kaveh R. Ghazi committed
    • Daily bump. · 7b45d84d
      From-SVN: r32354
      Jeff Law committed
  9. 05 Mar, 2000 1 commit
  10. 04 Mar, 2000 1 commit
  11. 03 Mar, 2000 1 commit
  12. 02 Mar, 2000 1 commit
  13. 01 Mar, 2000 1 commit
  14. 29 Feb, 2000 2 commits
    • c-decl.c (current_function_decl): Move to toplev.c. · 00262c8a
      	* c-decl.c (current_function_decl): Move to toplev.c.
      	(init_decl_processing): Don't add current_function_decl as a ggc
      	root here.
      	* dbxout.c (dbxout_symbol): Change return type to int.
      	(dbxout_symbol_location, dbxout_syms): Likewise.
      	(dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
      	any locals. Use current_function_func_begin_label if set.
      	* dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
      	* dwarf2out.c (dwarf2out_begin_prologue): Set
      	current_function_func_begin_label.
      	* final.c (final_start_function): Reset it.
      	* toplev.c (current_function_decl): Define it here.
      	(current_function_func_begin_label): New variable.
      	(main): Add both as ggc roots.
      	* tree.h (current_function_func_begin_label): Declare.
      	* ch/decl.c (current_function_decl): Move to toplev.c.
      	* cp/decl.c (current_function_decl): Move to toplev.c.
      	* f/com.c (current_function_decl): Move to toplev.c.
      	* java/decl.c (current_function_decl): Move to toplev.c.
      
      From-SVN: r32268
      Martin v. Löwis committed
    • Daily bump. · 898d4b17
      From-SVN: r32252
      Jeff Law committed
  15. 28 Feb, 2000 1 commit
  16. 27 Feb, 2000 2 commits
    • builtins.c (c_strlen): Use size_diffop and return ssizetype value. · fed3cef0
      	* builtins.c (c_strlen): Use size_diffop and return ssizetype value.
      	(expand_builtin_strcpy): Pass correct type to size_binop.
      	(expand_builtin_strcmp): Likewise.
      	Clean up conditional structure.
      	* c-decl.c (init_decl_processing): Don't call set_sizetype twice.
      	(complete_array_type): Don't use size_binop for MAXINDEX.
      	* c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
      	(c_sizeof_nowarn, c_size_in_bytes): Likewise.
      	(c_alignof): Use size_one_node.
      	(build_unary_op): Pass arg of proper type to size_binop.
      	(really_start_incremental_init, push_init_level): Use sizetype for
      	constructor{,_bit,_unfilled}_index.
      	(pop_init_label, output_init_element): Likewise.
      	(output_pending_init_elements, process_init_element): Likewise.
      	* calls.c (compute_argument_block_size): Field VAR is ssizetype.
      	* expr.c (store_expr): Use size_int.
      	(store_constructor): Use proper types for size_binop args.
      	(get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
      	(expand_expr_unaligned): Likewise.
      	(string_contant): Return object of sizetype.
      	* expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
      	(ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
      	(ARGS_SIZE_TREE): Pass proper types to size_binop.
      	* fold-const.c (int_const_binop): Refine when size_int is called.
      	(fold_convert): Likewise.
      	(size_int_wide): Rework to take KIND as arg, only take low order
      	bits, handle new sizetype_tab datatype, and chain entries in
      	size_table.
      	(size_int_type_wide): New function.
      	(size_binop): Validate types of arguments.
      	(ssize_binop): Deleted.
      	(size_diffop): New function.
      	(extract_muldiv): Only fold division into multiplication for sizetypes.
      	* function.c (assign_parms): Use size_diffop and make sure
      	VAR field is of ssizetype; also pass proper type to size_binop.
      	(locate_and_pad_parm, pad_to_arg_alignment): Likewise.
      	(round_down): Deleted from here.
      	* store-layout.c (sizetype_tab): Now an array.
      	(sizetype_set, early_root_list): New variables.
      	(variable_size): Use size_one_node.
      	(round_up): Pass proper type to size_binop.
      	(round_down): Moved to here and corrected as above.
      	(layout_record): Pass proper arg types to size_binop.
      	(layout_type): Likewise.
      	If sizetype_set is zero, record the type just laid out.
      	(make_unsigned_type): Don't call set_sizetype;
      	(make_signed_type): Likewise; also, call fixup_signed_type.
      	(initialize_sizetypes): New function.
      	(set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
      	set name of bitsizetype to "bit_size_type".
      	Fix up type of sizes of all types made before call.
      	* tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
      	* tree.c (fix_sizetype): Deleted.
      	(build_common_tree_nodes): Call initialize_sizetypes.
      	(build_common_tree_nodes_2): Don't call fix_sizetype.
      	* tree.h (TYPE_IS_SIZETYPE): New macro.
      	(initialize_sizetype): New declaration.
      	(enum size_type_kind): New type.
      	(struct sizetype_tab): Deleted.
      	(sizetype_tab): Now array; adjust sizetype macros.
      	(size_diffop, size_int_type_wide): New functions.
      	(size_int_wide): Change number of args and type; access macros changed.
      	(ssize_int, sbitsize_int): New macros.
      	* config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
      	(ROUND_TYPE_SIZE_UNIT): New macro.
      	* ch/actions.c (chill_convert_for_assignment): Don't use size_binop
      	for things that aren't sizes.
      	(expand_varying_length_assignment): Likewise.
      	* ch/convert.c (digest_array_tuple, convert): Likewise.
      	* ch/typeck.c (build_chill_slice, smash_dummy_type): Likewise.
      	(build_chill_slice_with_range): Likewise.
      	(build_chill_slice_with_length): Likewise.
      	(build_array_from_set): Adjust types for size_binop.
      	* ch/expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
      	(build_chill_sizeof): Use TYPE_SIZE_UNIT.
      	* ch/tree.c (build_string_type): Pass proper type to size_binop.
      	* cp/class.c (dfs_build_vtable_offset_vtbl_entries): Don't use
      	size_binop on things that are not sizes; ssize_binop deleted.
      	Call size_diffop when appropriate.
      	(dfs_build_vcall_offset_vtbl_entries): Likewise.
      	(build_primary_vtable, build_secondary_vtable): Likewise.
      	(dfs_set_offset_for_unshared_vbases, dfs_modify_vtables): Likewise.
      	Variable I is HOST_WIDE_INT.
      	(get_vfield_offset): Pass proper types to size_binop.
      	(size_extra_vtbl_entries, layout_virtual_bases): Likewise.
      	(finish_struct_1): Likewise.
      	(skip_rtti_stuff): Arg N is now pointer to signed.
      	(layout_class_type): Use size_zero_node.
      	* cp/cp-tree.h (skip_rtti_stuff): Arg N is pointer to signed.
      	* cp/cvt.c (cp_convert_to_pointer): Pass proper types to size_binop.
      	* cp/decl.c (complete_arry_type): Pass proper types to size_binop.
      	(xref_basetypes): BINFO_OFFSET is sizetype.
      	* cp/error.c (dump_expr): Don't use size_binop non-sizes.
      	* cp/expr.c (cplus_expand_constant): Pass proper types to size_binop.
      	* cp/init.c (construct_virtual_bases): Fix type error.
      	(build_vec_delete_1): Pass proper type to size_binop and don't
      	fold result.
      	* cp/lex.c (cp_make_lang_type): BINFO_OFFSET is sizetype.
      	* cp/rtti.c (get_base_offset): Pass proper type to size_binop.
      	* cp/search.c (dfs_find_vbases): Fix type error.
      	(expand_upcast_fixups): Arg to skip_rtti_stuff is pointer to signed.
      	(dfs_get_vbase_types): BINFO_OFFSET is sizetype.
      	* cp/tree.c (debug_binfo): Variable N is signed.
      	Use HOST_WIDE_INT_PRINT_DEC.
      	* cp/typeck.c (comptypes): sizetype is same as equivalent integer type.
      	(c_sizeof, c_sizeof_nowarn, expr_sizeof): Use TYPE_SIZE_UNIT,
      	size_one_node and size_zero_node.
      	(c_alignof): Use size_one_node.
      	(build_component_addr): Pass proper types to size_binop.
      	(expand_ptrmemfunc_cst): Don't use size_binop on non-sizes.
      	* f/com.c (ffecom_arrayref_): Convert args to size_binop to proper
      	type.
      	(ffecom_tree_canonize_ptr_): Don't use size_binop for non-sizes.
      	(ffecom_tree_canonize_ref_): Likewise.
      	(type_for_mode): Handle TImode.
      	* f/ste.c (ffeste_io_dofio_, ffeste_io_douio_): Use TYPE_SIZE_UNIT.
      	(ffeste_io_ciclist_): Likewise.
      	* java/expr.c (build_java_ret): Pass proper type to size_binop.
      
      From-SVN: r32225
      Richard Kenner committed
    • Daily bump. · 5d112ff3
      From-SVN: r32216
      Jeff Law committed
  17. 26 Feb, 2000 2 commits
  18. 25 Feb, 2000 1 commit
  19. 24 Feb, 2000 2 commits
    • Daily bump. · ee419188
      From-SVN: r32131
      Jeff Law committed
    • tree.h (TREE_SET_PERMANENT): New macro. · 23dfa477
      	* tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
      	under which TREE_PERMANENT will be set.
      	* tree.c (make_node, copy_node, make_tree_vec, tree_cons,
      	build1): Use TREE_SET_PERMANENT.
      	* print-tree.c (print_node): Don't report value of
      	TREE_PERMANENT if ggc_p is true.
      
      	* c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
      	decide whether to give a type a new alias set.
      	* objc/objc-act.c (build_objc_string_object): Never copy the string.
      	* tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
      	of value of 'obstack'.
      
      	* f/com.c (ffecom_type_permanent_copy_): Delete unused function.
              (finish_decl): Don't change TREE_PERMANENT (DECL_INITIAL (decl)).
      
      From-SVN: r32128
      Zack Weinberg committed
  20. 23 Feb, 2000 1 commit
  21. 22 Feb, 2000 1 commit
  22. 21 Feb, 2000 1 commit
  23. 20 Feb, 2000 3 commits
    • Daily bump. · ce26960a
      From-SVN: r32077
      Jeff Law committed
    • Move language-specific entries · 64e92991
      From-SVN: r32071
      Richard Kenner committed
    • c-common.c (decl_attributes): Set DECL_SIZE_UNIT. · 06ceef4e
      	* c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
      	* c-decl.c (duplicate_decls, finish_enum): Likewise.
      	(finish_decl): Remove -Wlarger-than code from here.
      	* flags.h (id_clash_len): Now int.
      	(larger_than_size): Now HOST_WIDE_INT.
      	* fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
      	Clean up checking to see if in table.
      	(make_bit_field_ref): Remove extra parm to bitsize_int.
      	* ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
      	* print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
      	* stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
      	and for computing size of decl.
      	* stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
      	Move -Wlarger-than code to here.
      	(layout_record): Remove extra arg to bitsize_int.
      	Set TYPE_BINFO_SIZE_UNIT.
      	(layout_union): Remove extra arg to bitsize_int.
      	Use proper type for size of QUAL_UNION.
      	(layout_type): Remove extra arg to bitsize_int.
      	* toplev.c (id_clash_len): Now int.
      	(larger_than_size): Now HOST_WIDE_INT.
      	(decode_W_option): Clean up id-clash and larger-than- cases.
      	* tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
      	(expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
      	* tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
      	(struct tree_decl): New field size_unit.
      	(size_int_wide): No HIGH operand; NUMBER is now signed.
      	(size_int_2): Deleted.
      	(size_int, bitsize_int): Don't use it and rework args.
      	* varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
      	* ch/decl.c (layout_enum): Set DECL_SIZE_UNIT.
      	* ch/satisfy.c (safe_satisfy_decl): Likewise.
      	* cp/class.c (build_primary_vtable, layout_vtable_decl): Likewise.
      	(avoid_overlap, build_base_field): Likewise.
      	(build_base_field, build_base_fields, is_empty_class):
      	Test DECL_SIZE with integer_zero.
      	(layout_class_type): Set CLASSTYPE_SIZE_UNIT.
      	* cp/cp-tree.h (struct lang_type): New field size_unit.
      	(CLASSTYPE_SIZE_UNIT): New macro.
      	* cp/decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
      	(cp_finish_decl): Delete -Wlarger-than processing.
      	* cp/optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
      	* cp/pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
      	* cp/tree.c (make_binfo): binfo vector is one entry longer.
      	(walk_tree): Walk DECL_SIZE_UNIT.
      	* f/com.c (ffecom_sym_transform): Use DECL_SIZE_UNIT.
      	(ffecom_transform_common_, ffecom_transform_equiv_): Likewise.
      	(duplicate_decls): Likewise.
      	(ffecom_tree_canonize_ptr_): Delete extra arg to bitsize_int.
      	(finish_decl): Delete -Wlarger-than processing.
      	* java/class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
      	* java/constants.c (build_constants_constructor): Likewise.
      
      From-SVN: r32068
      Richard Kenner committed
  24. 19 Feb, 2000 1 commit
  25. 18 Feb, 2000 2 commits
  26. 17 Feb, 2000 2 commits
  27. 16 Feb, 2000 3 commits
    • configure (gcc_version): When setting, narrow search to lines containing `version_string'. · 4746ee26
      	* configure (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      gcc:
      	* version.c: Include gansidecl.h and version.h.
      
      	* version.h: Wrap entire file in macro __GCC_VERSION_H__.
      
      	* configure.in (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      	* Makefile.in (mainversion): Likewise.
      	(GCC_H): New variable.
      	(gcc.h): Delete target.
      	(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
      	(version.o): Depend on version.h.
      	(dbxout.o): Don't depend on gcc.h.
      
      gcc/cp:
      	* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
      
      gcc/f:
      	* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
      
      gcc/java:
      	* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
      
      libf2c:
      	* configure.in (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      From-SVN: r32009
      Kaveh R. Ghazi committed
    • Daily bump. · 1efa676d
      From-SVN: r32007
      Jeff Law committed
    • Jonathan Larmour <jlarmour@redhat.co.uk>: · 3ea8083f
      Add new __GNUC_PATCHLEVEL__ define.
      
      From-SVN: r32004
      Jonathan Larmour committed