- 25 Jan, 2000 3 commits
-
-
* 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 ... * c-common.c (expand_tree_builtin): ... here. From-SVN: r31598
Richard Henderson committed -
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
-
- 24 Jan, 2000 16 commits
-
-
From-SVN: r31595
Christopher Faylor committed -
* 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 -
* 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. * 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. * 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. From-SVN: r31588
Jan Hubicka committed -
* i386.h (FIRST_PSEUDO_REGISTER): Set to 21. (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Add frame pointer (FRAME_POINTER_REGNUM): Set to 20 (HARD_FRAME_POINTER_REGNUM): New macro. (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER to HARD_FRAME_POINTER. (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise. (REG_OK_FOR_BASE_NONSTRICT_P): Likewise. (HI_REGISTER_NAMES): Add "frame". (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination. (debug_reg): Handle FRAME_POINTER_REGNUM. (reg_class): Add arg pointer and frame pointer to NON_Q_REGS, GENERAL_REGS and INDEX_REGS. * i386.c (SAVED_REGS_FIRST): new macro. (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx (ix86_decompose_address, memory_address_length): Likewise. (regclass_map): Add frame pointer. (call_insn_operand): Handle frame_pointer_rtx. (reg_no_sp_operand): Likewise. (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx. (print_operand, legitimize_pic_address): Fix formating. (ix86_compute_frame_size): Make static, update prototype, new parameters padding1, padding2, use ix86_nsaved_regs, use stack_alignment_needed. (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM conversions. (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues. (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues. (print_reg): Abort on FRAME_POINTER_REGNUM From-SVN: r31587
Jan Hubicka committed -
* i386.h (PREDICATE_CODES): Add aligned_operand. * i386.c (aligned_operand): New function. (ix86_aligned_p): Kill. * i386.md (movhi_1): Emit mov for aligned operands. (promoting peep2s): Use aligned_operand. From-SVN: r31586
Jan Hubicka committed -
* cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New cp_tree_index values. (throw_bad_cast_node, throw_bad_typeid_node, dynamic_cast_node): New global node #defines for them. * rtti.c (call_void_fn): Replace with ... (build_runtime_decl): ... new static function. (throw_bad_cast): Use throw_bad_cast_node and build_runtime_decl. (throw_bad_typeid): Use throw_bad_typeid_node and build_runtime_decl. (build_dynamic_cast_1): Always produce correctly typed result. Explicitly produce type_info addresses. Use dynamic_cast_node. * exception.cc (__throw_bad_cast): Return `void *'. (__throw_bad_typeid): Return `const type_info &'. From-SVN: r31585
Nathan Sidwell committed -
2000-01-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr> * stl_iterator.h: Make it possible to use standard class `iterator'. From-SVN: r31584
Gabriel Dos Reis committed -
* cp-tree.h (get_vtable_decl): Prototype new function. * class.c (get_vtable_decl): New function. Broken out from ... (build_vtable): ... here. Use it. * decl2.c (finish_vtable_vardecl): Ignore dummy vtables created by get_vtable_decl. From-SVN: r31583
Nathan Sidwell committed -
* cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE, CPTI_USER_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_ATTR_DESC_TYPE, CPTI_PTMF_DESC_TYPE): Remove cp_tree_index enumerations. (CPTI_TI_DESC_TYPE, CPTI_REF_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE, CPTI_BASE_DESC_TYPE): New enumerations. (CPTI_TINFO_FN_ID, CPTI_TINFO_FN_TYPE): Rename to ... (CPTI_TINFO_DECL_ID, CPTI_TINFO_DECL_TYPE): ... here. (CPTI_TINFO_VAR_ID): New enumeration. (__tp_desc_type_node, __access_mode_type_node, __bltn_desc_type_node, __user_desc_type_node, __class_desc_type_node, __ptr_desc_type_node, __attr_desc_type_node, __func_desc_type_node, __ptmf_desc_type_node, __ptmd_desc_type_node): Remove #defines. (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node, ref_desc_type_node, ary_desc_type_node, func_desc_type_node, enum_desc_type_node, class_desc_type_node, si_class_desc_type_node, vmi_class_desc_type_node, ptmd_desc_type_node, base_desc_type_node): New #defines. (tinfo_fn_id, tinfo_fn_type): Rename to ... (tinfo_decl_id, tinfo_decl_type): ... here. Adjust. (tinfo_var_id): New enumeration. (DECL_TINFO_FN_P): Augment comment. * decl.c (cp_global_trees): Adjust documentation. * rtti.c (init_rtti_processing): Adjust for tinfo_decl_id, tinfo_decl_type and tinfo_var_id. (get_tinfo_decl_dynamic): Adjust for tinfo_decl_type. (build_typeid): Remove unused variable. (get_tinfo_var): Use tinfo_var_id. (tinfo_name): New static function. (get_tinfo_decl): Adjust for tinfo_decl_id and tinfo_decl_type. (tinfo_from_decl): Likewise. (get_base_offset): New static function, broken out of expand_class_desc. (expand_si_desc): Use tinfo_name. (expand_class_desc): Likewise. Lose local static variable. Use base_desc_type_node. Use get_base_offset. (expand_ptr_desc): Use tinfo_name. (expand_attr_desc): Likewise. (expand_generic_desc): Likewise. * tinfo.cc (__GXX_ABI_VERSION): Test value and existance. * tinfo.h (__GXX_ABI_VERSION): Test value and existance. From-SVN: r31582
Nathan Sidwell committed -
From-SVN: r31581
Jeff Law committed -
* fixinc/fixfixes.c (fix_char_macro_uses): Correct regular expression to allow underscores in macro names. (fix_char_macro_defines): Increment scanning pointer. From-SVN: r31580
Zack Weinberg committed -
* alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define. * alpha/osf5.h: New file. * configure.in (alpha-*-osf5): Add it to tm_file. * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target. * alpha-protos.h (alpha_emit_xfloating_arith): Declare. (alpha_emit_xfloating_cvt, function_arg): Declare. * alpha.c (alpha_emit_conditional_branch): Call alpha_emit_xfloating_compare for TFmode compares. (alpha_lookup_xfloating_lib_func): New. (alpha_compute_xfloating_mode_arg): New. (alpha_emit_xfloating_libcall): New. (alpha_emit_xfloating_arith): New. (alpha_emit_xfloating_compare): New. (alpha_emit_xfloating_cvt): New. (print_operand): Add default abort case. (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE. * alpha.h (TARGET_HAS_XFLOATING_LIBS): New. (BIGGEST_ALIGNMENT): Increase to 128 bits. (RETURN_IN_MEMORY): True for TF/TCmode. (ALPHA_ARG_SIZE): TF/TCmode is passed indirect. (FUNCTION_ARG): Move to function_arg. (FUNCTION_ARG_PASS_BY_REFERENCE): New. (ASM_OUTPUT_LONG_DOUBLE): New. (ASM_OUTPUT_DOUBLE): Always output bits. * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New. (fix_trunctfdi2, floatditf2, floatunsditf2): New. (extenddftf2, trunctfdf2): New. From-SVN: r31579
Richard Henderson committed -
* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved... * config/sparc/sol2.h: ... here. From-SVN: r31578
Alexandre Oliva committed
-
- 23 Jan, 2000 11 commits
-
-
2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * basic-block.h (struct loops): New field `levels'. * flow.c (flow_loops_level_compute): Traverse all outer loops. (flow_loop_level_compute): Initialise level to 1. (flow_loops_find): Set loops->levels. (flow_loops_dump): Print loops->levels. From-SVN: r31577
Michael Hayes committed -
* libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS. (throw_helper): Iterate over DWARF_FRAME_REGISTERS. From-SVN: r31576
Richard Henderson committed -
* i386.c (dbx_register_map, svr4_dbx_register_map): New. * i386.h (DBX_REGISTER_NUMBER): Use them. * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise. * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise. * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise. * i386/sequent.h: Kill incorrect comment. From-SVN: r31575
Richard Henderson committed -
From-SVN: r31574
Mark Mitchell committed -
* cp-tree.h (__eprintf): Remove declaration. * tree.c (__eprintf): Remove definition. * cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N, CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings. From-SVN: r31573
Mark Mitchell committed -
* ggc-page.c (struct page_entry): Make `context_depth' an `unsigned short'. From-SVN: r31572
Mark Mitchell committed -
From-SVN: r31571
Brad Lucier committed -
* cp-tree.h (register_dtor_fn): New function. * decl.c (destroy_local_static): Rename to ... (register_dtor_fn): ... this. Give it external linkage. (expand_static_init): Use it. * decl2.c (do_static_initialization): Likewise, if using __cxa_atexit. (do_static_destruction): Check that __cxa_atexit is not in use. (finish_file): Don't call do_static_destruction if using __cxa_atexit. * typeck.c (convert_arguments): Restore two-message error reporting. From-SVN: r31570
Mark Mitchell committed -
* loop.c (check_dbra_loop): When checking a loop for reversability, check the source of any stores to ensure they don't depend on an initial value. From-SVN: r31569
Clinton Popetz committed -
From-SVN: r31568
Robert Lipe committed -
From-SVN: r31567
Jeff Law committed
-
- 22 Jan, 2000 10 commits
-
-
* include/config.h.in: Rebuilt. * acconfig.h: Add undef for __NO_MATH_INLINES. * configure: Rebuilt. * configure.in: Add test for `g++ -O2 -ffloat-store' bug. From-SVN: r31566
Anthony Green committed -
2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine. From-SVN: r31565
Michael Hayes committed -
* fixinc/fixincl.c: Move declarations of 'pz_fname' and 'pz_scan' into scope of entire function. Only affects compiles with -DDEBUG. From-SVN: r31564
Zack Weinberg committed -
into .data. From-SVN: r31563
Alan Modra committed -
From-SVN: r31562
Bernd Schmidt committed -
From-SVN: r31561
Jim Wilson committed -
From-SVN: r31560
Jeff Law committed -
* cpphash.c (change_newlines): Delete function. (struct argdata): Delete 'newlines' and 'use_count' fields. (macroexpand): Remove code referencing those fields. From-SVN: r31559
Zack Weinberg committed -
From-SVN: r31558
Zack Weinberg committed -
* loop.c (loops_info): New variable. (loop_optimize): Allocate loops->array and free it on exit. Allocate memory for loops_info and assign to each loop, replacing alloca. (find_and_verify_loops): Do not allocate loops->array. From-SVN: r31556
Michael Hayes committed
-