aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-04-02* doc/standards.texi: Document required freestanding libc entry points.Richard Henderson2-4/+18
From-SVN: r51768
2002-04-02rs6000.md (ctrdi*): Add FPR constraint and associated splitter.Alan Modra2-31/+76
2002-04-02 Alan Modra <amodra@bigpond.net.au> * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and associated splitter. Remove MQ constraint. (ctrdi_internal4): Correct CCmode clobber. From-SVN: r51767
2002-04-0220020402-1.c: New test.Franz Sirl2-0/+45
2002-04-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.c-torture/execute/20020402-1.c: New test. From-SVN: r51762
2002-04-02milli64.S ($$dyncall): New function.John David Anglin3-11/+37
* milli64.S ($$dyncall): New function. * t-linux (LIB1ASMFUNCS): Revise module list. (LIB1ASMSRC): Use pa/milli64.S. From-SVN: r51760
2002-04-02inclhack.def (AAB_solaris_sys_varargs_h): Move and rename solaris_sys_varargs_h.Richard Henderson3-55/+60
* fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and rename solaris_sys_varargs_h. From-SVN: r51759
2002-04-02Remove previous deltaNick Clifton2-11/+1
From-SVN: r51757
2002-04-02(output_return_instruction): Do not create the conditional part of the ↵Nick Clifton2-1/+10
return instruction... (output_return_instruction): Do not create the conditional part of the return instruction, if there is no condition to be used. From-SVN: r51750
2002-04-02stor-layout.c (layout_type, [...]): Give one-element array the same mode as ↵Richard Kenner2-2/+12
its component. * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array the same mode as its component. From-SVN: r51745
2002-04-02re PR rtl-optimization/190 (Optimization bug for x86 target)Richard Henderson4-1/+15
PR opt/190 * final.c (this_is_asm_operands): Export. * output.h (this_is_asm_operands): Declare. * config/i386/i386.c (print_operand): Error odd asm operands. From-SVN: r51741
2002-04-02Daily bump.GCC Administrator2-2/+2
From-SVN: r51740
2002-04-02* config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.Richard Henderson2-2/+54
From-SVN: r51736
2002-04-01inclhack.def (solaris_sys_varargs_h): New.Richard Henderson3-2/+62
* fixinc/inclhack.def (solaris_sys_varargs_h): New. * fixinc/fixincl.x: Rebuild. From-SVN: r51729
2002-04-01* gcc.c-torture/compile/920625-1.x: XFAIL -O1.Richard Henderson2-1/+3
From-SVN: r51726
2002-04-01unwind-ia64.c: Include ia64intrin.h.Richard Henderson2-32/+190
* config/ia64/unwind-ia64.c: Include ia64intrin.h. (atomic_alloc, atomic_free): New. (SIZE, MASK_FOR, PTR_IN): New. (emergency_reg_state, emergency_reg_state_free): New. (emergency_labeled_state, emergency_labeled_state_free): New. (reg_state_alloced, labeled_state_alloced): New. (alloc_reg_state, free_reg_state): New. (alloc_label_state, free_label_state, free_label_states): New. (push, pop, dup_state_stack, free_state_stack): Use them. (desc_label_state): Likewise. (uw_frame_state_for): Free label states and state stack. (uw_update_reg_address): Eliminate warnings. From-SVN: r51722
2002-04-01pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Redefine them.Vladimir Makarov2-0/+28
2002-04-01 Vladimir Makarov <vmakarov@redhat.com> * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Redefine them. From-SVN: r51713
2002-04-01c-decl.c (grokdeclarator): Update.Neil Booth37-84/+163
* c-decl.c (grokdeclarator): Update. * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. * c-tree.h (c_mark_addressable): New. * c-typeck.c (default_function_array_conversion, build_unary_op, build_array_ref, convert_for_assignment): Update. (mark_addressable): Rename. * calls.c (try_to_integrate, expand_call): Use langhook. * expr.c (expand_expr): Use langhook. * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct lang_hooks): New hook. * stmt.c (expand_asm_operands): Use langhook. * tree.h (mark_addressable): Remove. ada: * decl.c (gnat_to_gnu_entity): Update. * gigi.h (mark_addressable): Rename. * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. * trans.c (tree_transform): Update. * utils.c (create_var_decl): Update. * util2.c (build_binary_op, build_unary_op, fill_vms_descriptor): Update. (mark_addressable): Rename, update. cp: * call.c (build_addr_func): Update. * class.c (resolve_address_of_overloaded_function): Update. * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. * cp-tree.h (cxx_mark_addressable): New. * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update. * decl2.c (build_cleanup): Update. * except.c (build_throw): Update. * init.c (resolve_offset_ref): Update. * pt.c (convert_nontype_argument): Update. * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update. * typeck.c (decay_conversion, build_array_ref, build_unary_op, unary_complex_lvalue): Update. (mark_addressable): Rename. f: * com.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. (mark_addressable): Rename. (ffecom_arrayref_, ffecom_1): Update. java: * java-tree.h (java_mark_addressable): New. * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. * typeck.c (mark_addressable): Rename, update. objc: * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. From-SVN: r51705
2002-04-01xtensa.c (xtensa_va_arg): Fix compiler warning in previous change.Bob Wilson2-1/+7
* config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning in previous change. From-SVN: r51704
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-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-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 Administrator2-2/+2
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-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-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 Administrator2-2/+2
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