1. 20 Oct, 2000 33 commits
    • Warning fixes: · 8f54374e
      	* mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
      
      	* sparc.c (load_pic_register): Delete unused varaible.
      
      	* libgcc2.c (__addvsi3): Delete unused variable.
      
      	* libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
      	__subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
      	__negvdi2): Prototype.
      
      	* ssa.c (apply_delayed_renames): Avoid undefined operation.
      
      	* toplev.c (display_target_options): Make static to match
      	prototype.  Delete empty declaration.
      
      From-SVN: r36987
      Kaveh R. Ghazi committed
    • From Arno J. Klaassen: · a9770f9a
      	* interpret.cc: Include <stdlib.h> for alloca.
      	* defineclass.cc: Include <stdlib.h> for alloca.
      
      From-SVN: r36986
      Tom Tromey committed
    • * tree.c (walk_tree): Don't walk into default args. · 05c1707c
      From-SVN: r36985
      Jason Merrill committed
    • tree.c (walk_tree): Don't walk into default args. · ba523395
              * tree.c (walk_tree): Don't walk into default args.
      
              * error.c (dump_expr): Use host_integerp.
      
      From-SVN: r36984
      Jason Merrill committed
    • Removed erroneous ChangeLog entry · ac758f96
      From-SVN: r36983
      Tom Tromey committed
    • Makefile.in: Rebuilt. · 480222b5
      	* Makefile.in: Rebuilt.
      	* Makefile.am: Include deps.mk.
      	(GCJCOMPILE): Added -MD, -MT, and -MF.
      	($(javao_files)): Don't depend on libgcj.zip.
      	(all-recursive): New target.
      	(%.lo:%.cc): Do dependency tracking.
      	($(nat_headers)): Don't depend on libgcj.zip.
      	* configure: Rebuilt.
      	* configure.in: Make .d files and deps.mk.
      
      From-SVN: r36982
      Tom Tromey committed
    • jvspec.c (lang_specific_driver): Recognize -MF and -MT. · 316a06a1
      	* jvspec.c (lang_specific_driver): Recognize -MF and -MT.
      	* lang-specs.h: Added %{MA}, %{MF*}, %{MT*}.
      	* lang-options.h: Added -MA, -MT, -MF..
      	* lang.c (lang_decode_option): Recognize -MA, -MT, -MF.
      	(DEPEND_TARGET_SET): New macro.
      	(DEPEND_FILE_ALREADY_SET): Likewise.
      	(init_parse): Handle new flags.
      	* jcf.h (jcf_dependency_print_dummies): Declare.
      	* Make-lang.in (s-java): Added mkdeps.o.
      	* Makefile.in (BACKEND): Added mkdeps.o.
      	(../gcjh$(exeext)): Added mkdeps.o.
      	(../jcf-dump$(exeext)): Added mkdeps.o.
      	* jcf-depend.c: Include mkdeps.h.
      	(struct entry, dependencies, targets, MAX_OUTPUT_COLUMNS,
      	add_entry): Removed.
      	(jcf_dependency_reset): Rewrote.
      	(dependencies): New global.
      	(jcf_dependency_set_target): Rewrote.
      	(jcf_dependency_add_target): Likewise.
      	(jcf_dependency_add_file): Likewise.
      	(munge): Removed.
      	(print_ents): Removed.
      	(jcf_dependency_write): Rewrote.
      	(print_dummies): New global.
      	(jcf_dependency_print_dummies): New function
      	(jcf_dependency_write): Call deps_dummy_targets if required.
      
      From-SVN: r36981
      Tom Tromey committed
    • cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. · 3f568531
      	* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
      	* gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
      
      From-SVN: r36980
      Tom Tromey committed
    • expr.c (expand_expr, [...]): Set RTX_UNCHANGING_P on returned MEM. · 235783d1
      	* expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
      	returned MEM.
      	(expand_expr_unaligned, case ARRAY_REF): Check that index is
      	a constant before comparing it; use tree_low_cst.
      	* tree.c (save_expr): Set TREE_READONLY.
      	(substitute_expr): Return inside of NON_LVALUE_EXPR.
      	(build, build1): Set TREE_READONLY if all operands are.
      	(build_index_type): If upper bound is a negative number, lower
      	bound is zero and sizetype is unsigned, use upper bound of one and
      	lower of zero.
      
      From-SVN: r36979
      Richard Kenner committed
    • gcse.c (set_hash_table_size): Now unsigned. · 948068e2
      	* gcse.c (set_hash_table_size): Now unsigned.
      	* sdbout.c (template_name_p): Add "const" to avoid warnings.
      	(sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
      	(sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
      	(sdbout_end_epilogue): Remove variable NAME.
      	* system.h (getopt): Add default definition.
      	* config/alpha/alpha.c (print_operand): Don't continue processing
      	after issuing error.
      	(summarize_insn): Avoid use of UL in constant.
      
      From-SVN: r36978
      Richard Kenner committed
    • * Use "because" instead of since in error messages. · 2e44948d
      From-SVN: r36977
      David Edelsohn committed
    • stor-layout.c (compute_record_mode): Use tree_low_cst. · 382110c0
      	* stor-layout.c (compute_record_mode): Use tree_low_cst.
      	Don't use mode of field for record unless sizes are the same.
      	(layout_type, case ARRAY_TYPE): Remove special bounds handling
      	previously added for Ada; also change to using host_integerp
      	and tree_low_cst.
      
      From-SVN: r36976
      Richard Kenner committed
    • loop.c (strength_reduce): Show when new register made for giv is known to be a… · 1dcdb0df
      loop.c (strength_reduce): Show when new register made for giv is known to be a pointer and its aligment if...
      
      	* loop.c (strength_reduce): Show when new register made for
      	giv is known to be a pointer and its aligment if so and known.
      	(loop_dump_aux): Show VERBOSE parameter unused.
      
      From-SVN: r36975
      Richard Kenner committed
    • gcse.c (set_hash_table_size): Now unsigned. · ebb13e7e
      	* gcse.c (set_hash_table_size): Now unsigned.
      	* sdbout.c (template_name_p): Add "const" to avoid warnings.
      	(sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
      	(sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
      	(sdbout_end_epilogue): Remove variable NAME.
      	* system.h (getopt): Add default definition.
      	* config/alpha/alpha.c (print_operand): Don't continue processing
      	after issuing error.
      	(summarize_insn): Avoid use of UL in constant.
      
      From-SVN: r36974
      Richard Kenner committed
    • Fix formatting after collision. · 391db8c9
      From-SVN: r36972
      Richard Henderson committed
    • regrename.c (rr_replace_reg): Rewrite to use recog_data to perform substitutions... · 4ca0f257
              * regrename.c (rr_replace_reg): Rewrite to use recog_data to
              perform substitutions, and apply_change_group to see if it worked.
      
      From-SVN: r36971
      Richard Henderson committed
    • fold-const.c (force_fit_type): Unsigned values can overflow if they are sizetype. · 44475138
      	* fold-const.c (force_fit_type): Unsigned values can overflow
      	if they are sizetype.
      	(int_const_binop): Don't use cache if overflows.
      	* cp/typeck.c (dubious_conversion_warning): Suppress if
      	TYPE_IS_SIZETYPE.
      
      From-SVN: r36970
      Richard Kenner committed
    • * dwarf2out.c (add_bound_info): Also ignore COND_EXPR. · d57e164f
      From-SVN: r36968
      Richard Kenner committed
    • combine.c (struct undo): Change int to unsigned int. · 0345195a
      	* combine.c (struct undo): Change int to unsigned int.
      	(do_SUBST_INT): Args are unsigned int.
      	(make_extraction, force_to_mode): Use proper type when forming mask.
      	(make_field_assignment): Likewise.
      
      From-SVN: r36967
      Richard Kenner committed
    • decl.c (revert_static_member_fn): Fixed typo. · 11306230
      2000-10-20  Jeffrey Oldham  <oldham@codesourcery.com>
      
      	* decl.c (revert_static_member_fn): Fixed typo.
      
      From-SVN: r36966
      Jeffrey Oldham committed
    • c-common.c (check_format_info_recurse): Extract string constant initializers… · 2f74f7e9
      c-common.c (check_format_info_recurse): Extract string constant initializers from non-volatile constant arrays and...
      
      	* c-common.c (check_format_info_recurse): Extract string constant
      	initializers from non-volatile constant arrays and check them as
      	formats.
      	* c-typeck.c (decl_constant_value): Don't check pedantic or check
      	for DECL_MODE (decl) != BLKmode.
      	(decl_constant_value_for_broken_optimization): New function which
      	includes these checks.
      	(default_conversion, convert_for_assignment, digest_init): Use
      	decl_constant_value_for_broken_optimization instead of
      	decl_constant_value.
      
      testsuite:
      	* gcc.dg/format-array-1.c: New test.
      
      From-SVN: r36965
      Joseph Myers committed
    • * tree.h (DECL_ALIGN_UNIT): New macro. · 971774bb
      From-SVN: r36964
      Mark Mitchell committed
    • avr-protos.h (avr_output_bld): New. · afee2a52
      	* config/avr/avr-protos.h (avr_output_bld): New.
      	(out_shift_with_cnt): Add t_len argument.
      	* config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
      	(output_movqi, output_movhi, output_movsisf): Optimize loading
      	any constant with exactly one bit set to NO_LD_REGS.
      	(out_shift_with_cnt): Optimize output code for size or speed,
      	depending on optimize_size.  Handle small shift counts as well
      	(if not hand-optimized in ?sh??i3_out).  Shifts can be done
      	with or without a scratch register, with help of __tmp_reg__
      	or __zero_reg__ if necessary.  Add T_LEN argument to pass the
      	length of TEMPLATE in words, return total insn length in *LEN.
      	(ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
      	out_shift_with_cnt to work with the above change.
      	(ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
      	lshrsi3_out): Likewise.  Optimize more known shift count cases.
      	Remove cases already well optimized in out_shift_with_cnt.
      	(avr_output_bld): New function.
      	* config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
      	(TARGET_SWITCHES): Remove -mpack-args backward compatibility.
      	* config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
      	Add reload_completed to insn condition - only for peepholes.
      	(ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
      	in a register or memory.
      	(ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
      	Do not require a scratch register.
      	(*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
      	*lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
      	Optimize shifts by known count using a scratch register, but only
      	if one is still available after register allocation.
      
      From-SVN: r36963
      Marek Michalkiewicz committed
    • Add changelog for previous commit · 406b0a7c
      From-SVN: r36962
      Alexandre Oliva committed
    • Daily bump. · 57cd4fe1
      From-SVN: r36961
      Jeff Law committed
    • * t-vax: New file. Don't build modules from libgcc1.c. · 831f9339
      From-SVN: r36960
      J. David Anglin committed
    • codecvt_unicode_char.cc (test01): Adjust creation of state_type for… · 7dc08a20
      codecvt_unicode_char.cc (test01): Adjust creation of state_type for unicode_codecvt to take into account the byte...
      
      
      2000-10-19  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* testsuite/22_locale/codecvt_unicode_char.cc (test01): Adjust
      	creation of state_type for unicode_codecvt to take into account
      	the byte order markings. Add distinct tests for UCS-2BE and UCS-2LE.
      	* testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Same.
      	* include/bits/codecvt.h (__enc_traits): Add support for encodings
      	that need a byte order marker. Needed for correct unicode support.
      
      	* src/locale.cc: Remove explicit qualification std::.
      	(locale::locale(const char* __name)): Revert, as named locale
      	support not finished.
      	* src/localename.cc (locale::_Impl:: _Impl(size_t __numfacets,
      	size_t __refs, bool __has_name = false, string __name): Move
      	default argument...
      	* include/bits/localefwd.h: Here.
      
      From-SVN: r36959
      Benjamin Kosnik committed
    • class.c (subobject_offset_fn): New type. · c20118a8
      	* class.c (subobject_offset_fn): New type.
      	(dfs_record_base_offsets): Remove.
      	(record_base_offsets): Likewise.
      	(dfs_search_base_offsets): Likewise.
      	(record_subobject_offset): New function.
      	(check_subobject_offset): Likewise.
      	(walk_subobject_offsets): Likewise.
      	(record_subobject_offsets): Likewise.
      	(layout_conflict_p): Reimplement.
      	(layout_nonempty_base_or_field): Correct handling of type
      	conflicts during layout.
      	(layout_empty_base): Likewise.
      	(build_base_field): Adjust to handle new representation of empty
      	base offset table.
      	(build_base_fields): Likewise.
      	(layout_virtual_bases): Likewise.
      	(splay_tree_compare_integer_csts): New function.
      	(layout_class_type): Use a splay_tree, rather than a varray, to
      	represent the offsets of empty bases.
      
      From-SVN: r36958
      Mark Mitchell committed
    • alias.c: (mark_constant_function): Don't check pure functions. · bf6d9fd7
      	* alias.c: (mark_constant_function): Don't check pure functions.
      	Initialize and end alias analysis.
      	(nonlocal_mentioned_p): Rename from nonlocal_reference_p.
      	Don't make a special exception for recursion.  Handle
      	UNSPEC_VOLATILE.  Don't assume ASM_OPERANDS is non-local
      	unless it's volatile.
      
      	* local-alloc.c (equivalence): New structure.
      	(reg_equiv): Define.
      	(contains_replace_regs): Remove array and use
      	field in reg_equiv.
      	(memref_referenced_p): Likewise.
      	(no_equiv): Likewise.
      	(update_equiv_regs): Likewise.
      
      	(equiv_init_varies_p,
      	equiv_init_movable_p): New functions.
      	(update_equiv_regs): Use them.  Use rtx_varies_p
      	instead of function_invariant_p.  Process insns
      	from end to beginning.  Allow a REG_EQUIV insn
      	within the same loop as a use to be moved, also
      	allow it to be moved out of a loop.  Update
      	REG_DEAD notes when substituting into an insn.
      
      From-SVN: r36957
      John Wehle committed
    • parse.y (find_most_specific_methods_list): Select the only non-abstract method… · cab8e2bd
      parse.y (find_most_specific_methods_list): Select the only non-abstract method even if max has been set.
      
      2000-07-18  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	* parse.y (find_most_specific_methods_list): Select the only
      	non-abstract method even if max has been set.
      	Fixes gcj/285, gcj/298.
      
      (http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00646.html)
      
      From-SVN: r36956
      Bryce McKinlay committed
    • Fix tree-checking abort on testcase with undefined macro as array size. · f4fce7ed
      	* c-decl.c (start_decl): Check for error_mark_node type before using
      	COMPLETE_TYPE_P.
      	(finish_decl): Likewise.  Don't give an error if decl type is
      	already error_mark_node.
      
      From-SVN: r36955
      Jim Wilson committed
  2. 19 Oct, 2000 7 commits