1. 26 Jan, 2000 11 commits
  2. 25 Jan, 2000 23 commits
    • cp-tree.h (vcall_offset_in_vtable_p): New macro. · 1a588ad7
      	* cp-tree.h (vcall_offset_in_vtable_p): New macro.
      	* class.c (build_vbase_offset_vtbl_entries): Fix typo in commment.
      	(struct vcall_offset_data_s): New type.
      	(dfs_vcall_offset_queue_p): New function.
      	(dfs_build_vcall_offset_vtbl_entries): Likewise.
      	(build_vcall_offset_vtbl_entries): Likewise.
      	(layout_vtable_decl): Likewise.
      	(num_vfun_entries): Likewise.
      	(num_extra_vtbl_entries): Add the entries for vcall offsets.
      	(build_vtbl_initializer): Likewise.
      	(dfs_finish_vtabls): Use layout_vtable_decl.
      	(modify_one_vtables): Always duplicate vtables under the new ABI.
      	(finish_struct_1): Use layout_vtable_decl.
      
      From-SVN: r31619
      Mark Mitchell committed
    • loop.c (current_loop_info): Delete. · 0534b804
      2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
      
      	* loop.c (current_loop_info): Delete.
      	(consec_sets_invariant_p): Add loop argument, update callers.
      	(get_condition_for_loop): Likewise.
      	(count_nonfixed_reads, update_giv_derive): Likewise.
      	(simplify_giv_expr, general_induction_var): Likewise.
      	(consec_sets_giv, recombine_givs): Likewise.
      	(move_movables): Delete loop_start and loop_end arguments,
      	add loop argument, and update callers.
      	(find_mem_givs, check_final_value): Likewise.
      	(record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
      	(loop_invariant_p): Rename from invariant_p, add loop argument, and
      	update callers.
      	(basic_induction_var): Add loop argument, delete loop_level argument,
      	and update callers.
      	* unroll.c (iteration_info): Delete loop_start and loop_end arguments,
      	add loop argument, and update callers.
      	(find_splittable_regs, find_splittable_givs): Likewise.
      	(reg_dead_after_loop, loop_find_equiv_value): Likewise.
      	(final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
      	(biv_total_increment): Delete loop_start and loop_end arguments;
      	update callers.
      	(precondition_loop_p): Delete loop_start and loop_info arguments;
      	update callers.
      	* loop.h (get_condition_for_loop): Add loop argument.
      	(biv_total_increment): Delete loop_start and loop_end arguments.
      	(precondition_loop_p): Delete loop_start and loop_info arguments;
      	add loop argument.
      	(final_biv_value): Delete loop_start and loop_end arguments;
      	add loop argument.
      	(final_giv_value, back_branch_in_range_p): Likewise.
      
      From-SVN: r31618
      Michael Hayes committed
    • Makefile.in (c-gperf.h): Change the "See" pointer to point to the new "generated_files" doc. · 490cab72
      2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
      
      	* Makefile.in (c-gperf.h) : Change the "See" pointer to
      	point to the new "generated_files" doc.
      
      From-SVN: r31616
      Gavin Romig-Koch committed
    • decl.c (member_function_or_else): Change third arg from a format specifier to an… · 4dacf5bd
      decl.c (member_function_or_else): Change third arg from a format specifier to an `enum overload_flags'.
      
      	* decl.c (member_function_or_else): Change third arg from a format
      	specifier to an `enum overload_flags'.  Callers changed.
      
      From-SVN: r31615
      Kaveh R. Ghazi committed
    • parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string concatenation. · 2884c41e
      	* parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
      	concatenation.
      	(OBSOLETE_MODIFIER_WARNING2): New macro allowing two args.
      
      	* parse.y (register_fields): Don't pass a format specifier to
      	OBSOLETE_MODIFIER_WARNING.
      	(check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2
      	instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format
      	specifier.
      	(check_modifiers): Change function into a macro.
      	(check_class_interface_creation): Pass a literal format string.
      
      From-SVN: r31614
      Kaveh R. Ghazi committed
    • * config/fp-bit.c (_unord_f2): Fix typo. · 8c135f84
      From-SVN: r31613
      Clinton Popetz committed
    • new · f7cf9dd6
      From-SVN: r31612
      Jason Merrill committed
    • c-common.c, [...]: Remove all references to obstack functions obsoleted by GC... · 4dd7201e
      	* c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
      	c-typeck.c, objc/objc-act.c: Remove all references to obstack
      	functions obsoleted by GC, such as push_obstacks_nochange,
      	end_temporary_allocation, savealloc, saveable_tree_cons, etc.
      	and code which existed only to decide whether or not to call
      	them.  Remove now-unused NESTED argument from start_function;
      	all callers changed.  Do not change behavior based on ggc_p.
      	The use of the ixp_obstack in c-iterate.c and the util_obstack
      	in objc/objc-act.c remain; these are not obsoleted by garbage
      	collection.
      	* c-tree.h: Update prototype for start_function.
      
      	* c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
      
      From-SVN: r31611
      Zack Weinberg committed
    • mips.md (zero_extendsidi2_internal): Disable for mips16. · b5031ab7
      	* config/mips/mips.md (zero_extendsidi2_internal): Disable for
      	mips16.
      
      From-SVN: r31610
      Clinton Popetz committed
    • sparc-protos.h (select_cc_mode): Declare. · e267e177
              * sparc-protos.h (select_cc_mode): Declare.
              * sparc.c (select_cc_mode): New.  Handle unordered compares.
              (output_cbranch): Always reverse via code change.  Handle
              unordered compares.  Factor tests and string updates.
              * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
              (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
              * sparc.md (bunordered, bordered): New.
              (bungt, bunlt, buneq, bunge, bunle): New.
      
      From-SVN: r31609
      Richard Henderson committed
    • typeck.c (composite_pointer_type, [...]): Avoid ANSI string concatenation usage. · ddcc7cf6
      2000-01-25  Gabriel Dos Reis  <gdr@codesourcery.com>
      
              * typeck.c (composite_pointer_type, c_sizeof, expr_sizeof,
              build_binary_op_nodefault, build_unary_op, build_reinterpret_cast,
              build_const_cast, get_delta_difference, check_return_expr): Avoid
              ANSI string concatenation usage.
      
      From-SVN: r31608
      Gabriel Dos Reis committed
    • dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root. · ef8288f7
              * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
              * ggc-common.c (ggc_add_rtx_varray_root): New.
              (ggc_mark_rtx_varray): New.
              (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
              functions down below ggc_mark_foo.
              * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
      
      From-SVN: r31607
      Richard Henderson committed
    • alpha.c (secondary_reload_class): Don't allocate a secondary for integral mode… · 41bd3d41
      alpha.c (secondary_reload_class): Don't allocate a secondary for integral mode memories into FLOAT_REGS.
      
              * alpha.c (secondary_reload_class): Don't allocate a secondary
              for integral mode memories into FLOAT_REGS.  Rearrange the more
              complicated memory expression inward.
      
      From-SVN: r31606
      Richard Henderson committed
    • Daily bump. · 38544f54
      From-SVN: r31605
      Jeff Law committed
    • inclhack.def: Fixes to play nicer with FreeBSD, and corrections to comments. · 3be1fb72
      2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
      
      	* inclhack.def: Fixes to play nicer with FreeBSD, and
      	corrections to comments.
      	(cxx_unready): Add select expression.
      	(irix_sockaddr): Add bypass expression.
      	(machine_ansi_h_va_list): New fix.
      	(stdio_va_list): No need to edit _BSD_VA_LIST_.
      	Split out addition of "#include <stdarg.h>" to...
      	(stdio_stdarg_h): ... here.
      	(systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
      	to stdlib.h also.  Do not munge _BSD_SIZE_T_.
      	(sysz_stdlib_for_sun): Delete duplicate fix for unprotected
      	size_t.
      	(ultrix_ifdef): Tighten up select expression.
      
      	* fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
      	re_ct and max_mach to avoid use of shell.  Make printed names
      	match names in inclhack.def.  Use static copyright date.
      	Don't count c_test and test expressions as requiring regex_t
      	slots.  Add some commentary.
      	* inclhack.tpl: Do not include the 'This script contains N
      	fixup scripts' line if PROGRAM is defined.  Use static
      	copyright date.
      
      From-SVN: r31604
      Zack Weinberg committed
    • class.c (layout_class_type): Put the fields required to make a class non-empty at the end... · 534170eb
      	* class.c (layout_class_type): Put the fields required to make a
      	class non-empty at the end, not the beginning, of the TYPE_FIELDs
      	list.
      
      From-SVN: r31603
      Mark Mitchell committed
    • dwarf2out.c: include "varray.h", not dyn-string.h. · 1865dbb5
              * dwarf2out.c: include "varray.h", not dyn-string.h.
              (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
              (addr_const_to_string, addr_to_string): Lose.
              (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
              (struct dw_val_struct): val_addr is now an rtx.
              (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
              (used_rtx_varray): New varray.
              (dwarf2out_init): Initialize it.
              (save_rtx): New fn.
              (mem_loc_descriptor, add_const_value_attribute): Call it instead of
              addr_to_string.
              * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
              sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
              * Makefile.in (dwarf2out.o): Update dependencies.
      
              * i386.c (i386_dwarf_output_addr_const): New.
              * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
      
              * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
              if defined.
              * dwarfout.c (output_mem_loc_descriptor): Likewise.
              * i386.c (i386_simplify_dwarf_addr): New.
              * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
      
      From-SVN: r31602
      Jason Merrill committed
    • pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a template. · 7610f2ce
              * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
              template.
      
              * decl2.c (mark_used): Do instantiate inlines that have been
              explicitly instantiated.
      
      From-SVN: r31601
      Jason Merrill committed
    • typo · 6d4e202e
      From-SVN: r31600
      Jason Merrill committed
    • Fix mips EABI/dwarf2 segfault while compiling newlib. · 65e1263a
      	* dwarf2out.c (gen_struct_or_union_type_die): Set complete if
      	TYPE_STUB_DECL is NULL.
      
      From-SVN: r31599
      Jim Wilson committed
    • builtins.c (expand_tree_builtin): Move ... · 5eda3d66
              * builtins.c (expand_tree_builtin): Move ...
              * c-common.c (expand_tree_builtin): ... here.
      
      From-SVN: r31598
      Richard Henderson committed
    • loop.h (LOOP_INFO): New accessor macro. · 52b38064
      2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
      
      	* loop.h (LOOP_INFO): New accessor macro.
      	* basic-block.h (struct loop): Rename field `info' to `aux'.
      	* loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
      	(prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
      	* unroll.c (loop_iterations, unroll_loop): Likewise.
      
      From-SVN: r31596
      Michael Hayes committed
  3. 24 Jan, 2000 6 commits
    • Include new cygwin include directories · a1e3399a
      From-SVN: r31595
      Christopher Faylor committed
    • Makefile.in (CXX_FOR_TARGET): Use g++, not xgcc, to invoke the C++ compiler. · 7a53e94b
      	* Makefile.in (CXX_FOR_TARGET): Use g++, not xgcc, to invoke
      	the C++ compiler.
      
      	* lib/g++.exp (g++init): Use g++, not xgcc, to invoke the C++
      	compiler.
      	(tool_option_proc): Fix typo.
      
      From-SVN: r31593
      Mark Mitchell committed
    • ecos.exp (gcsec-1.c): Check the version of the ld on the host, not on the build machine. · 360f2326
      * gcc.dg/special/ecos.exp (gcsec-1.c): Check the version
      of the ld on the host, not on the build machine.
      Also, don't crash if '--help' is not a supported option.
      
      From-SVN: r31592
      Geoff Keating committed
    • rtl.def: Add unordered fp comparisions. · 1eb8759b
              * rtl.def: Add unordered fp comparisions.
              * tree.def: Likewise.
      	* tree.h: Add ISO C 9x unordered fp comparision builtins.
      
      	* builtins.c (expand_tree_builtin): New function.
      	* c-typeck.c (build_function_call): Use it.
      	(build_binary_op): Support unordered compares.
      	* c-common.c (c_common_nodes_and_builtins): Add unordered compares.
      
      	* combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
      	(reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
      	* cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
      	(record_jump_equiv): Handle reverse_condition returning UNKNOWN.
      	* jump.c (reverse_condition): Don't abort for UNLE etc, but
      	return UNKNOWN.
      	(swap_condition): Handle unordered compares.
      	(thread_jumps): Check can_reverse before reversing.
      	* loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
      	reversed for FP.
      
      	* optabs.c (can_compare_p): New argument CODE.  Verify branch or
      	setcc is present before acking for cmp_optab.  Update all callers.
      	(prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
      	* expmed.c (do_cmp_and_jump): Update for can_compare_p.
      	* expr.c (expand_expr): Likewise.  Support unordered compares.
      	(do_jump, do_store_flag): Likewise.
      	* expr.h (enum libfunc_index): Add unordered compares.
      
      	* Makefile.in (FPBIT_FUNCS): Add _unord_sf.
      	(DPBIT_FUNCS): Add _unord_df.
      	* config/fp-bit.c (_unord_f2): New.
      	* fp-test.c (main): Try unordered compare builtins.
      
      	* alpha-protos.h (alpha_fp_comparison_operator): Declare.
      	* alpha.c (alpha_comparison_operator): Check mode properly.
      	(alpha_swapped_comparison_operator): Likewise.
      	(signed_comparison_operator): Likewise.
      	(alpha_fp_comparison_operator): New.
      	(alpha_emit_conditional_branch): Handle unordered compares.
      	* alpha.h (PREDICATE_CODES): Update.
      	* alpha.md (fp compares): Use alpha_fp_comparison_operator.
      	(bunordered, bordered): New.
      
      	* cp/call.c (build_over_call): Use expand_tree_builtin.
      	* cp/typeck.c (build_function_call_real): Likewise.
      	(build_binary_op_nodefault): Handle unordered compares.
      
      	* gcc.c-torture/execute/ieee/fp-cmp-4.c: New.
      
      From-SVN: r31591
      Richard Henderson committed
    • alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation. · d6cde845
              * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
              * alpha.md (movtf): New expander, insn, and splitter.
      
      From-SVN: r31589
      Richard Henderson committed
    • reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of dead registers. · eedf2f55
      
      	* reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
      	dead registers.
      
      From-SVN: r31588
      Jan Hubicka committed