aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-04-01xtensa.c (xtensa_va_arg): Fix to handle arguments for which ↵Bob Wilson2-13/+25
MUST_PASS_IN_STACK is true (e.g.... * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments for which MUST_PASS_IN_STACK is true (e.g., variable-sized types). From-SVN: r51700
2002-04-01* g++.dg/other/new1.C: Use __SIZE_TYPE__.Richard Henderson2-1/+5
From-SVN: r51698
2002-04-01basic_ios.h (basic_ios::_M_exception): Move.Benjamin Kosnik8-63/+152
2002-04-01 Benjamin Kosnik <bkoz@redhat.com> libstdc++/3129 * include/bits/basic_ios.h (basic_ios::_M_exception): Move. (basic_ios::_M_streambuf_state): Move. * include/bits/ios_base (ios_base): To here. * include/bits/ios_base.h (ios_base::_S_local_words): To _S_local_word_size. (ios_base::_M_word_array): To _M_local_word. (ios_base::_M_words_limit): To _M_word_size. (ios_base::_M_words): To _M_word. Comment. * include/bits/basic_ios.tcc: Adjust. * src/ios.cc (ios_base::_M_grow_words): Tweak. * testsuite/27_io/ios_base_storage.cc: Add tests. libstdc++/5207 Kenny Simpson <theonetruekenny@yahoo.com> * include/bits/ios_base.h: Fix. Richard Henderson <rth@redhat.com> * include/bits/ostream.tcc (ostream::operator<<(_CharT)): Correct last change. * include/bits/basic_string.h: Tweak formatting. From-SVN: r51695
2002-04-01mauve-libgcj: Add JDK1.3...Mark Wielaard2-26/+18
* mauve-libgcj: Add JDK1.3, JDK1.4, JLS1.2 tests, remove ignored tests that can be compiled now and add testsuite crashers to ignore list. From-SVN: r51693
2002-04-01* gcc.misc-tests/linkage.exp: Special case 64-bit solaris2.Kaveh R. Ghazi2-0/+10
From-SVN: r51691
2002-04-01re PR c++/5998 (regression, all builtins disabled)Roger Sayle2-1/+10
PR c++/5998: * decl.c (duplicate_decls): Overwrite the RTL when (and only when) overwriting a built-in function. Don't use COPY_DECL_RTL, but follow the SET_DECL_RTL idiom used elsewhere in the function. From-SVN: r51690
2002-04-01template-as-base.C: Expect error.Gabriel Dos Reis3-2/+7
* g++.dg/inherit/template-as-base.C: Expect error. * g++.dg/inherit/namespace-as-base.C: Likewise. From-SVN: r51687
2002-04-012002-04-01 Paolo Carlini <pcarlini@unitus.it>Paolo Carlini4-10/+20
* config/locale/ieee_1003.1-2001/codecvt_specializations.h (codecvt::do_out, codecvt::do_unshift, codecvt::do_in): By definition, sizeof(char) == 1. * include/bits/locale_facets.tcc (money_get::do_get, money_put::do_put): Ditto. * testsuite/21_strings/inserters_extractors.cc (test04): Ditto. From-SVN: r51685
2002-04-01c-common.c (unsigned_conversion_warning, [...]): Use new hooks.Neil Booth33-148/+262
* c-common.c (unsigned_conversion_warning, convert_and_check, unsigned_type, signed_type, shorten_compare, c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks. (unsigned_type, signed_type, signed_or_unsigned_type): Rename. * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type): New. * c-decl.c (grokdeclarator): Update. * c-format.c (check_format_types): Update. * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. * c-typeck.c (build_binary_op, convert_for_assignment): Update. * convert.c (convert_to_integer): Use new hooks. * expmed.c (make_tree): Use new hooks. * expr.c (store_expr): Use new hooks. * fold-const.c (operand_equal_for_comparison_p, build_range_check, all_ones_mask_p, unextend, fold): Use new hooks. * langhooks.h (struct lang_hooks_for_types): New hooks. * tree.h (signed_or_unsigned_type, signed_type, unsigned_type): Remove. ada: * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type): Rename. * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. * trans.c (tree_transform, convert_with_check): Update. * utils.c (unsigned_type, signed_type, signed_or_unsigned_type): Rename. cp: * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. * decl.c (grokdeclarator): Update. * mangle.c (write_integer_cst): Update. * typeck.c (build_binary_op): Update. f: * com.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. (unsigned_type, signed_type, signed_or_unsigned_type): Rename. java: * expr.c (build_java_binop): Update. * java-tree.h (java_signed_type, java_unsigned_type, java_signed_or_unsigned_type): Update. * lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. * parse.y (patch_binop): Update. * typeck.c (signed_or_unsigned_type, unsigned_type, signed_type): Update. objc: * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. From-SVN: r51684
2002-04-01Daily bump.GCC Administrator6-6/+6
From-SVN: r51683
2002-03-31unwind-ia64.c (alloc_spill_area): Fix offset.Richard Henderson2-3/+9
* config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset. (desc_frgr_mem): Fix reference to f16-f31. From-SVN: r51679
2002-04-01varray.h (VARRAY_CHECK): Const-ify.Kaveh R. Ghazi3-7/+10
* varray.h (VARRAY_CHECK): Const-ify. * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree, ggc_mark_rtvec, ggc_mark): Const-ify. From-SVN: r51677
2002-04-01rtl.h (RTL_CHECK1, [...]): Const-ify.Kaveh R. Ghazi2-8/+13
* rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2, RTVEC_ELT): Const-ify. From-SVN: r51676
2002-03-31diagnostic.c: Include langhooks-def.h.Neil Booth3-1/+7
* diagnostic.c: Include langhooks-def.h. * Makefile.in (diagnostic.o): Update. From-SVN: r51674
2002-03-31c-common.c (c_unsafe_for_reeval): Rename.Neil Booth21-49/+85
* c-common.c (c_unsafe_for_reeval): Rename. * c-common.h (c_unsafe_for_reeval): Rename. * c-decl.c (finish_incomplete_decl): Rename. (c_init_decl_processing): Don't set langhook. * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine. * c-objc-common.c (c_objc_common_init): Don't set langhook. * c-tree.h (finish_incomplete_decl): Rename. * langhooks-def.h (lhd_unsafe_for_reeval): New. (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_unsafe_For_reeval): New. * langhooks.h (struct langhooks): New hooks. * toplev.c (incomplete_decl_finalize_hook): Remove. (wrapup_global_declarations): Update. * tree.c (lang_unsafe_for_reeval): Remove. (unsafe_for_reeval): Update. * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook): Remove. ada: * gigi.h (finish_incomplete_decl): Rename. * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine. * utils.c (gnat_init_decl_processing): Don't set hook. (finish_incomplete_decl): Rename. cp: * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine. * lex.c (cxx_init): Don't set hook. objc: * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine. From-SVN: r51673
2002-03-31diagnostic.c (print_error_function): Remove.Neil Booth14-51/+89
* diagnostic.c (print_error_function): Remove. (default_print_error_function): Rename. (report_error_function): Update. * diagnostic.h (print_error_function): Remove. (default_print_error_function): Remove. * langhooks-def.h (struct diagnostic_context): Predeclare. (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct diagnostic context): Predeclare. (struct lang_hooks): New hook. cp: * Make-lang.in (error.o): Update. * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. * cp-tree.h (struct diagnostic_context): Predeclare. (cxx_print_error_function): New. * error.c: Include langhooks-def.h. (lang_print_error_function): Rename. Update. (init_error): Don't set hook. f: * com.c (lang_print_error_function): Rename. (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. (ffe_init): Don't set hook. java: * lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. (java_dummy_print): Remove. (lang_print_error): Rename. Exit early if inhibiting output. (inhibit_error_printing_function): New. (java_init): Don't set hook. (lang_init_source): Use new boolean. From-SVN: r51672
2002-03-31rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.Franz Sirl5-27/+42
2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New. (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if !flag_pic. (CONDITIONAL_REGISTER_USAGE): Adjust accordingly. * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead of PIC_OFFSET_TABLE_REGNUM thruout. * config/rs6000/rs6000.md: Likewise. * config/rs6000/darwin.h: Likewise. From-SVN: r51671
2002-03-31emit-rtl.c (adjust_address_1, [...]): Cast value to unsigned HOST_WIDE_INT, ↵Richard Kenner2-11/+18
not unsigned int. * emit-rtl.c (adjust_address_1, offset_address): Cast value to unsigned HOST_WIDE_INT, not unsigned int. From-SVN: r51670
2002-03-31PR middle-end/6096, middle-end/6098, middle-end/6099Jakub Jelinek2-3/+12
PR middle-end/6096, middle-end/6098, middle-end/6099 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for CODE_LABELs. (fill_slots_from_thread): Likewise. From-SVN: r51668
2002-03-31sparc.c (function_arg_record_value_1): Pass complex floating fields in float ↵Jakub Jelinek2-7/+39
regs. * config/sparc/sparc.c (function_arg_record_value_1): Pass complex floating fields in float regs. (function_arg_record_value_2): Likewise. From-SVN: r51667
2002-03-31mmix.md (define_constants): Remove misleading FIXME.Hans-Peter Nilsson2-19/+61
* config/mmix/mmix.md (define_constants): Remove misleading FIXME. Add MMIX_fp_rO_OFFSET. ("nonlocal_goto_receiver"): Don't have stack-frame address of saved rO as part of the pattern. Remove FIXME. ("*nonlocal_goto_receiver_expanded"): Similar. Generate address here, at output-time. From-SVN: r51664
2002-03-31re PR middle-end/6100 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure ↵Jakub Jelinek2-4/+11
w/-m64 on compile/20020320-1.c) PR middle-end/6100 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not REG_BR_PRED. (output_v9branch): Likewise. From-SVN: r51663
2002-03-31* libgcj.spec.in, libgcj-test.spec.in: Revert for now.Alexandre Oliva3-4/+6
From-SVN: r51659
2002-03-31gcc.c: Revert previous patch for now.Alexandre Oliva3-20/+15
* gcc.c: Revert previous patch for now. * config/i386/djgpp.h: Likewise. From-SVN: r51658
2002-03-31instantiate1.C, [...]: Tweak match patterns.Hans-Peter Nilsson4-8/+11
* g++.dg/ext/instantiate1.C, g++.dg/ext/instantiate2.C, g++.dg/ext/instantiate3.C: Tweak match patterns. From-SVN: r51657
2002-03-31static11.C: Skip on mmix-knuth-mmixware.Hans-Peter Nilsson3-0/+44
* g++.old-deja/g++.pt/static11.C: Skip on mmix-knuth-mmixware. * g++.dg/other/static11.C: Copy g++.old-deja/g++.pt/static11.C for -da test. From-SVN: r51656
2002-03-31Fix date in last entryHans-Peter Nilsson1-1/+1
From-SVN: r51655
2002-03-31crti.asm (_init): Register _fini with atexit.Hans-Peter Nilsson3-2/+16
* config/mmix/crti.asm (_init): Register _fini with atexit. * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0". From-SVN: r51654
2002-03-31elf.h (ASM_OUTPUT_DEF): Tidy.Richard Henderson5-5/+67
* config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy. (ASM_OUTPUT_DEF_FROM_DECLS): New. * gcc.dg/special/alias-2.c: New. * gcc.dg/special/ecos.exp: Run it. From-SVN: r51650
2002-03-31* config/alpha/alpha.md (trap): New.Richard Henderson2-0/+12
From-SVN: r51649
2002-03-31* libgcc2.c (__bb_exit_func): Make static.Richard Henderson2-1/+5
From-SVN: r51647
2002-03-31builtins.c (expand_builtin_va_arg): Give warnings not errors for promoted ↵Richard Henderson8-20/+51
argument types; build trap. * builtins.c (expand_builtin_va_arg): Give warnings not errors for promoted argument types; build trap. (expand_builtin_trap): New. (expand_builtin): Use it. * stmt.c (expand_nl_goto_receivers): Likewise. * expr.h (expand_builtin_trap): Declare. * libfuncs.h (LTI_abort, abort_libfunc): New. * optabs.c (init_optabs): Init abort_libfunc. * gcc.dg/va-arg-1.c: Expect warnings, not errors. From-SVN: r51643
2002-03-31libgcj.spec.in: Override libgcc, not lib.Alexandre Oliva3-4/+9
* libgcj.spec.in: Override libgcc, not lib. * libgcj-test.spec.in: Likewise. From-SVN: r51640
2002-03-31gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...Alexandre Oliva3-10/+29
* gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here... (LINK_COMMAND_SPEC): ... from here. (init_gcc_specs): Duplicate it here too, omitting shared_name in the second copy. (init_spec): Test for duplicate * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'. From-SVN: r51639
2002-03-31Daily bump.GCC Administrator6-6/+6
From-SVN: r51638
2002-03-31linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.David S. Miller3-0/+9
* config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define. * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise. From-SVN: r51634
2002-03-30Fix main return value.Richard Henderson1-1/+1
From-SVN: r51632
2002-03-31* gcc.dg/weak-1.c: Disable on h8300 port.Kazu Hirata2-1/+6
From-SVN: r51629
2002-03-30regmove.c (combine_stack_adjustments_for_block): Avoid emitting a stack ↵Roger Sayle2-27/+28
adjustment of zero bytes. * regmove.c (combine_stack_adjustments_for_block): Avoid emitting a stack adjustment of zero bytes. Let delete_insn update bb->head. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r51628
2002-03-30sparc.c: Remove all references to TARGET_EPILOGUE.Richard Henderson19-305/+148
* config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE. (sparc_emitting_epilogue): New. (leaf_label, output_return, sparc_return_peephole_ok): Remove. * config/sparc/sparc-protos.h: Update. * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove. (TARGET_SWITCHES): Update. * config/sparc/sparc.md (return): Remove. (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE. * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/netbsd-elf.h, config/sparc/sol2-sld-64.h, config/sparc/sol2.h, config/sparc/sp64-aout.h, config/sparc/sp64-elf.h, config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h, config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT): Remove MASK_EPILOGUE. * doc/invoke.texi: Update. From-SVN: r51626
2002-03-30re PR c++/3719 (Unable to retrow exception in unexpected exception handler.)Richard Henderson3-6/+67
PR c++/3719 * libsupc++/eh_personality.cc (__cxa_call_unexpected): Copy handler data out of the exception struct before calling unexpectedHandler. * g++.dg/eh/unexpected1.C: New. From-SVN: r51623
2002-03-31dwarf2out.c (dwarf2out_define): Remove start_source_file call, CPP will ↵Daniel Berlin2-7/+5
start the file for us. 2002-03-30 Daniel Berlin <dan@dberlin.org> * dwarf2out.c (dwarf2out_define): Remove start_source_file call, CPP will start the file for us. From-SVN: r51621
2002-03-31configure.in (i*86-*-netbsdelf*): Don't disable libgcj.Krister Walfridsson5-63/+75
2002-03-30 Krister Walfridsson <cato@df.lth.se> * configure.in (i*86-*-netbsdelf*): Don't disable libgcj. libffi: 2002-03-30 Krister Walfridsson <cato@df.lth.se> * configure.in: Enable i*86-*-netbsdelf*. * configure: Rebuilt. From-SVN: r51620
2002-03-31gcconfig.h: define DYNAMIC_LOADING for ELF NetBSD/i386.Bryce McKinlay2-0/+20
2002-03-30 Krister Walfridsson <cato@df.lth.se> * include/private/gcconfig.h: define DYNAMIC_LOADING for ELF NetBSD/i386. From-SVN: r51616
2002-03-30ia64.c (group_barrier_needed_p): Special case prologue_allocate_stack.Richard Henderson4-15/+53
* config/ia64/ia64.c (group_barrier_needed_p): Special case prologue_allocate_stack. (ia64_single_set): Use insn codes for recognition of special cases, not rtl matching. * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out. * gcc.c-torture/compile/20020330-1.c: New. From-SVN: r51615
2002-03-30* cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.Jan Hubicka2-0/+5
From-SVN: r51612
2002-03-30sparc.h (OVERRIDE_OPTIONS): Don't override -fpic or -fomit-frame-pointer ↵Richard Henderson4-68/+33
with profiling. * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic or -fomit-frame-pointer with profiling. (SUBTARGET_OVERRIDE_OPTIONS): Remove. (FUNCTION_PROFILER): Do nothing. (PROFILE_HOOK): New. * config/sparc/sparc.c (sparc_override_options): Don't check code models for profiling. (sparc_function_profiler): Remove. (sparc_profile_hook): New. * config/sparc/sparc-protos.h: Update. From-SVN: r51610
2002-03-30Fix whitespace.Richard Henderson1-1/+1
From-SVN: r51608
2002-03-30re PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)Jakub Jelinek2-0/+14
PR optimization/6086 * combine.c (combine_simplify_rtx): If simplify_rtx failed because of SUBREG of volatile MEM or because the MEM was mode dependent, return CLOBBER instead of unmodified SUBREG. From-SVN: r51606
2002-03-30local-alloc.c (local_alloc): Avoid call of update_equiv_regs when not ↵Jan Hubicka6-17/+86
optimizing. * local-alloc.c (local_alloc): Avoid call of update_equiv_regs when not optimizing. * toplev.c (rest_of_compilation): Cann mark_constant_function only when optimizing. * flow.c (calculate_global_regs_live): Ensure that all AUX fields are NULL. * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK. (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it. (try_optimize_cfg): clear all AUX fields. * i386.c (aligned_operand): Be prepared for SUBREGed registers. (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG. (ix86_address_cost): Be prepared for SUBREGed registers. (legitimate_address_p): Accept SUBREGed registers. From-SVN: r51604