aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-01-05Use alloca to create temporary string for initialisation before callingNick Clifton2-3/+8
ggc_alloc_string. From-SVN: r38732
2001-01-05* java/io/PipedReader: Synchronize on "lock" instead of this.Bryce McKinlay2-119/+135
From-SVN: r38731
2001-01-05rtl.h (print_simple_rtl): New.Michael Hayes3-36/+77
* rtl.h (print_simple_rtl): New. * print-rtl.c (print_simple_rtl): New. (flag_simple): New. (print_rtx): Disable printing of flags and modes, etc., if `flag_simple` nonzero. From-SVN: r38730
2001-01-05function.c (fixup_var_refs): Use push_to_full_sequence where possible.Zack Weinberg2-1/+6
* function.c (fixup_var_refs): Use push_to_full_sequence where possible. From-SVN: r38729
2001-01-05Declare flag_reorder_blocks and flag_rename_registersMichael Meissner2-0/+13
From-SVN: r38728
2001-01-05Note that INSN_PTR may be the note at the beginning of a blockAlexandre Oliva1-1/+2
From-SVN: r38726
2001-01-05991228-1.c: Take word endianness into account.Alexandre Oliva2-2/+13
* gcc.c-torture/execute/991228-1.c: Take word endianness into account. From-SVN: r38725
2001-01-05function.c (reorder_blocks): Make sure the flags are all reset before using ↵DJ Delorie2-0/+38
them to mark blocks... * function.c (reorder_blocks): Make sure the flags are all reset before using them to mark blocks, else a second invocation will corrupt the block chain. (reorder_blocks_0): New, resets the flags. From-SVN: r38724
2001-01-05cse.c (find_comparison_args): Stop if the argument is known to be constant.J"orn Rennecke2-1/+19
* cse.c (find_comparison_args): Stop if the argument is known to be constant. From-SVN: r38723
2001-01-05sh.md (movdf): When splitting load into pair of registers...Alexandre Oliva2-9/+29
* config/sh/sh.md (movdf): When splitting load into pair of registers, don't clobber the register used in the address too early. From-SVN: r38722
2001-01-05varasm.c (mark_constant_pool): Improve initial comments.Jeffrey Oldham2-50/+66
2001-01-05 Jeffrey Oldham <oldham@codesourcery.com> * varasm.c (mark_constant_pool): Improve initial comments. (mark_constants): Move marking of constants to mark_constant. (mark_constant): New function to recursively mark all constants referred to by a constant. From-SVN: r38721
2001-01-05(dbxout_parms): Handle invisible ref where decl is a REGCatherine Moore2-3/+11
From-SVN: r38720
2001-01-05lang-options.h: Bring comment in line with reality.Phil Edwards7-14/+20
2001-01-05 Phil Edwards <pme@sources.redhat.com> * cp/lang-options.h: Bring comment in line with reality. * f/lang-options.h: Likewise. * java/lang-options.h: Likewise. * objc/lang-options.h: Likewise. * ch/lang-options.h: Likewise. * f/g77.texi: And update the manual. From-SVN: r38719
2001-01-05avr-protos.h (avr_peep2_scratch_safe): Prototype.Marek Michalkiewicz4-12/+53
* config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype. * config/avr/avr.c (avr_peep2_scratch_safe): New function. * config/avr/avr.md (all peepholes that request a scratch register): Call it, FAIL the peephole if not safe (in interrupt functions). Co-Authored-By: Denis Chertykov <denisc@overta.ru> From-SVN: r38718
2001-01-05* ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.Mark Mitchell2-0/+15
From-SVN: r38717
2001-01-05builtins.def (BUILT_IN_CONJ, [...]): Define.Joseph Myers7-4/+288
* builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG): Define. * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ, BUILT_IN_CREAL and BUILT_IN_CIMAG. * c-common.c (c_common_nodes_and_builtins): Create builtin conjf, conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl. (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and BUILT_IN_CIMAG. * extend.texi: Document these builtins. testsuite: * gcc.c-torture/execute/builtin-complex-1.c: New test. From-SVN: r38716
2001-01-05VECTOR_TYPE fixes for aliasing, and dwarf2 output.Daniel Berlin3-1/+13
From-SVN: r38715
2001-01-05parse.y (template_datadef): Check for error_mark_node.Nathan Sidwell4-2/+23
cp: * parse.y (template_datadef): Check for error_mark_node. testsuite: * g++.old-deja/g++.pt/crash62.C: New test. From-SVN: r38714
2001-01-05fix exit and atexit calls for vax-*-bsd systemsBruce Korb3-1/+13
From-SVN: r38713
2001-01-05arm.md (ldmsi_postinc): Avoid use of match_dup between input and output ↵Richard Earnshaw5-18/+56
operands. * arm.md (ldmsi_postinc): Avoid use of match_dup between input and output operands. Use arm_hard_register_operand for operand 4. (stmsi_postinc): Similarly. (ldmsi): Use arm_hard_register_operand for opernand 2. (stmsi): Similarly. * arm.c (arm_hard_register_operand): New function. * arm-protos.h (arm_hard_register_operand): Prototype it. * arm.h (HARD_REGNO_RENAME_OK): Define. From-SVN: r38712
2001-01-05simplify-rtx.c (cfc_args): add "unordered" field.Jan Hubicka7-25/+91
* simplify-rtx.c (cfc_args): add "unordered" field. (check_fold_consts): Set unordered field. (simplify_relational_operation): Simplify the unordered comparisons. * reg-stack.c (swap_rtx_condition): Ensure that the transformation is valid. * emit-rtl.c (try_split): Fix code to mark labels. * jump.c (mark_jump_label): Make global. * rtl.h (mark_jump_label): Declare. * predict.c (estimate_probability): Handle unordred comparisons. From-SVN: r38711
2001-01-05cp-tree.def (DEFAULT_ARG): Make `x' class.Nathan Sidwell2-2/+6
cp: * cp-tree.def (DEFAULT_ARG): Make `x' class. From-SVN: r38710
2001-01-05Daily bump.Jeff Law5-5/+5
From-SVN: r38709
2001-01-05PipedInputStream: Rewrote to be simpler and more correct.Bryce McKinlay5-1240/+862
* java/io/PipedInputStream: Rewrote to be simpler and more correct. * java/io/PipedOutputStream: Updated to match new PipedInputStream. * java/io/PipedReader: New implementation based on new PipedInputStream. * java/io/PipedWriter: Updated to match new PipedOutputStream. From-SVN: r38708
2001-01-05cpp.texi: Update for -MP.Neil Booth10-25/+93
* cpp.texi: Update for -MP. Clarify behaviour of -MT. * cppinit.c (initialize_dependency_output): Update. (cpp_finish): Output dummy targets for -MP. (OPT_MP): New. (cpp_handle_option): Handle -MP. Don't quote -MT options. * cpplib.h (struct cpp_options): Add deps_phony_targets. * gcc.c (cpp_options): Update to handle -MP. * mkdeps.c (deps_add_target, deps_add_default_target): Update to quote only the default target. (deps_phony_targets): Insert a preceding newline. Rename from deps_dummy_targets for consistency. * mkdeps.h: Update java: * lang.c (lang_decode_option): Change -MA to -MP. * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target): Update to new prototype; do quote targets. (jcf_dependency_write): Update. From-SVN: r38707
2001-01-05calls.c (emit_library_call_value_1): Support INIT_CUMULATIVE_LIBCALL_ARGS.Alexandre Oliva3-1/+19
* calls.c (emit_library_call_value_1): Support INIT_CUMULATIVE_LIBCALL_ARGS. * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it. From-SVN: r38706
2001-01-04c-decl.c (finish_struct): Detect flexible array members used in an ↵Richard Henderson5-62/+172
inappropriate context. * c-decl.c (finish_struct): Detect flexible array members used in an inappropriate context. * c-typeck.c (really_start_incremental_init): Special case constructor_max_index for zero length arrays. (pop_init_level): Allow initialization of flexible array members. Deprecate initialization of zero length arrays. Don't issue missing initializer warning for flexible array members or zero length arrays. (process_init_element): Don't dereference null DECL_SIZE. * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT. Don't abort for empty constructors. Use size_binop (output_constructor): Add commentary regarding zero length array futures. Abort if we try to initialize an array of unspecified length with a non-empty constructor in the middle of a structure. * extend.texi (Zero Length): Update and clarify documentation on static initialization. From-SVN: r38705
2001-01-0420000926-1.c: Update expected warnings.Richard Henderson5-9/+35
* gcc.dg/20000926-1.c: Update expected warnings. * gcc.dg/array-2.c: Likewise. * gcc.dg/array-4.c: Also validate flexible array members. * gcc.dg/c99-flex-array-1.c: New. From-SVN: r38704
2001-01-05c4x.c (c4x_expand_prologue): Don't compile an ISR with more than 32767 words ↵Michael Hayes2-3/+13
of local storage. * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR with more than 32767 words of local storage. From-SVN: r38703
2001-01-05c4x.c (c4x_init_builtins): Remove builtin support for 'abs', 'labs', and 'fabs'.Michael Hayes3-50/+11
* config/c4x/c4x.c (c4x_init_builtins): Remove builtin support for 'abs', 'labs', and 'fabs'. (c4x_expand_builtin): Likewise. * config/c4x/c4x.h (enum c4x_builtins): Likewise. From-SVN: r38702
2001-01-05sh.md (prget, prset): New insn types.Alexandre Oliva2-14/+29
* config/sh/sh.md (prget, prset): New insn types. (return delay slot): Dont' allow prset. (call, sfunc delay slot): Don't allow prget. (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives for prset and prget. From-SVN: r38701
2001-01-05loop.h (struct loop_reg): New.Michael Hayes3-190/+186
* loop.h (struct loop_reg): New. (struct loop_regs): Change to use array of `struct loop_reg'. * loop.c: Replace assortment of varrays with single regs array. (count_one_set): Delete may_not_move array argument and use regs array instead. All caller's changed. (count_loop_regs_set): Delete may_not_move and single_usage arguments and use regs array instead. All caller's changed. (find_single_use_in_loop): Replace usage array argument with pointer to regs structure. All caller's changed. (loop_optimize): Delete `moved_once' array. From-SVN: r38700
2001-01-05loop.c (prescan_loop): Set loop_info->has_nonconst_call.Michael Hayes2-4/+15
* loop.c (prescan_loop): Set loop_info->has_nonconst_call. Use it instead of loop_info->has_call for scanning loop mems. (check_dbra_loop): Replace loop_info->has_call test with loop_info->has_nonconst_call. From-SVN: r38699
2001-01-05sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used for TARGET_SH3E.Matthew Hiller2-1/+7
* config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used for TARGET_SH3E. From-SVN: r38698
2001-01-05* java/lang/Thread.java: Update comment.Bryce McKinlay2-6/+7
From-SVN: r38697
2001-01-05fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST...Joseph Myers4-5/+12
* fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST, use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND. testsuite: * gcc.c-torture/compile/20001222-1.x: Remove. From-SVN: r38696
2001-01-04c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.Joseph Myers8-295/+234
* c-common.c (SIZE_TYPE, WCHAR_TYPE): Define. (flag_short_double, flag_short_wchar): Define. (c_common_nodes_and_builtins): Create many tree nodes shared between C and C++ here instead of in cp/decl.c and ... * c-decl.c (init_decl_processing): ... here. (SIZE_TYPE, WCHAR_TYPE): Don't define. (flag_short_double, flag_short_wchar): Don't define. (record_builtin_type): New function. (build_void_list_node): New function. * c-common.h (flag_short_double, flag_short_wchar, record_builtin_type, build_void_list_node): Declare. cp: * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define. (record_builtin_type): Make non-static. (flag_short_double): Don't declare. (init_decl_processing): Remove the creation of many tree nodes now in c_common_nodes_and_builtins. (build_void_list_node): New function. * decl2.c (flag_short_double, flag_short_wchar): Don't define. * cp-tree.h (flag_short_wchar): Don't declare. From-SVN: r38695
2001-01-04integrate.c (expand_inline_function): Don't put a virtual register into the ↵J"orn Rennecke3-2/+21
reg map. * integrate.c (expand_inline_function): Don't put a virtual register into the reg map. * function.c (fixup_var_refs_1): If force_operand didn't put the address into the target, move it there. From-SVN: r38694
2001-01-04std_cwctype.h: Include std_cwchar.h for wint_t.Benjamin Kosnik1-0/+36
2001-01-03 Benjamin Kosnik <bkoz@redhat.com> * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t. * testsuite/17_intro/header_cwctype.cc (main): New file. * src/Makefile.am (base_headers): Change. * include/bits/std_string.h: And here. * include/bits/string.tcc: Tweaks, move to... * include/bits/basic_string.tcc: ...Here. * src/string-inst.cc: Simplify, just instantiate the whole class, not member-by-member. From-SVN: r38693
2001-01-04Special-case tree_decl/tree_list allocations.Mark Mitchell2-34/+116
* ggc-page.c (OBJECT_PER_PAGE): Reimplement. (OBJECT_SIZE): New macro. (NUM_EXTRA_ORDER): Likewise. (extra_order_size_table): New variable. (NUM_ORDERS): New macro. (objects_per_page_table): New variable. (object_size_table): New variable. (G.pages): Use NUM_ORDERS to bound the array. (G.page_tails): Likewise. (DIV_ROUND_UP): Remove. (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP. (alloc_page): Use OBJECT_SIZE. (size_lookup): Don't make it const. (ggc_alloc): Use OBJECT_SIZE. (ggc_set_mark): Likewise. (ggc_get_size): Likewise. (init_ggc): Set up the object_size_table, objects_per_page_table, and adjust size_lookup. (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP. (ggc_pop_context): Use NUM_ORDERS. (clear_marks): Likewise. (sweep_pages): Likewise. (poison_pages): Likewise. (ggc_print_statistics): Use OBJECT_SIZE. From-SVN: r38692
2001-01-04varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.Richard Kenner2-12/+17
* varasm.c (output_constructor): Use HOST_WIDE_INT for sizes. Only call array_size_for_constructor if last field and array type with no upper bound. From-SVN: r38691
2001-01-04arm.c (arm_gen_constant): Prefer to emit constants from bit 31 downwards, if ↵Philip Blundell2-3/+63
this requires no more insns. 2001-01-04 Philip Blundell <philb@gnu.org> * config/arm/arm.c (arm_gen_constant): Prefer to emit constants from bit 31 downwards, if this requires no more insns. (count_insns_for_constant): New helper function for above. From-SVN: r38690
2001-01-04* gencodes.c (output_predicate_decls): Remove empty initializer.Alexandre Oliva2-5/+9
From-SVN: r38689
2001-01-04call.c (build_conv): Don't use build1 for USER_CONV.Mark Mitchell2-5/+13
* call.c (build_conv): Don't use build1 for USER_CONV. * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes. From-SVN: r38688
2001-01-04* gcc.c-torture/execute/built-in-setjmp.c: New.Richard Kenner2-0/+37
From-SVN: r38687
2001-01-04tree.c (copy_node): Remove documentation about obstacks.Mark Mitchell3-4/+19
* tree.c (copy_node): Remove documentation about obstacks. (buidl1): Check that nobody tries to build 2-argument nodes this way. * call.c (build_conv): Don't use build1 for USER_CONV. * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes. From-SVN: r38686
2001-01-04sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and fp_high_losum_p.Kaveh R. Ghazi2-3/+3
* sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and fp_high_losum_p. From-SVN: r38685
2001-01-04gencodes.c (output_predicate_decls): Fill empty initializer braces.Kaveh R. Ghazi2-1/+6
* gencodes.c (output_predicate_decls): Fill empty initializer braces. From-SVN: r38684
2001-01-04tradcpp.c (deps_file, [...]): New variables.Jakub Jelinek3-35/+103
* tradcpp.c (deps_file, print_deps_missing_files): New variables. (main): Handle -MG, -MD, -MMD. Bail out if -MG is given without -M or -MM. (do_include): Handle missing headers like cpp0. * cppfiles.c (_cpp_execute_include): Don't prefix absolute header paths with first include pathname. Don't strcat to uninitialized string. From-SVN: r38683
2001-01-04Some tidyups for ia64 problemsBernd Schmidt3-10/+80
From-SVN: r38682