aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-04-29arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already ↵Mark Mitchell3-0/+20
been provided. * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already been provided. (ARM_EABI_DTORS_SECTION_OP): Likewise. * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define. (ARM_EABI_DTORS_SECTION_OP): Likewise. From-SVN: r98988
2005-04-29s390.md ("prologue_tpf", [...]): Alter trace hooks calls to improve performance.Jim Tison2-7/+9
2005-04-29 Jim Tison <jtison@us.ibm.com> * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter trace hooks calls to improve performance. From-SVN: r98987
2005-04-29crtstuff.c: Handle targets that use .init_array.Julian Brown9-11/+155
* crtstuff.c: Handle targets that use .init_array. * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure that INVOKE__main is set correctly. (expand_main_function): Test INVOKE__main. * libgcc2.c: Do not define __main when using .init_array. * config/arm/arm.c (arm_elf_asm_constructor): New function. * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized libgcc version. (DTORS_SECTION_ASM_OP): Likewise. (CTOR_LIST_BEGIN): Define specially when in libgcc. (CTOR_LIST_END): Likewise. (DTOR_LIST_BEGIN): Likewise. (DTOR_LIST_END): Likewise. * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it. (FINI_SECTION_ASM_OP): Likewise. (INIT_ARRAY_SECTION_ASM_OP): Define. (FINI_ARRAY_SECTION_ASM_OP): Likewise. * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define. (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets. * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document. (FINI_ARRAY_SECTION_ASM_OP): Likewise. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r98986
2005-04-29m68k.c (m68k_initial_elimination_offset): Use gcc_assert and gcc_unreachable ↵Nathan Sidwell4-134/+103
as appropriate. * config/m68k/m68k.c (m68k_initial_elimination_offset): Use gcc_assert and gcc_unreachable as appropriate. (output_dbcc_and_branch, output_scc_di, legitimize_pic_address, const_int_cost, output_move_const_into_data_reg, output_move_qimode, output_move_double, find_addr_reg, print_operand, print_operand_address): Likewise. * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2, absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev, *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2, conditional_trap): Likewise. * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code. From-SVN: r98981
2005-04-29gfortran.h (gfc_namespace): Add seen_implicit_none field, Tobias forgot this ↵Francois-Xavier Coudert2-1/+6
in previous commit. * gfortran.h (gfc_namespace): Add seen_implicit_none field, Tobias forgot this in previous commit. From-SVN: r98980
2005-04-29xtensa.c (gen_int_relational): Use gcc_assert and gcc_unreachable as ↵Nathan Sidwell4-84/+91
appropriate. * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and gcc_unreachable as appropriate. (gen_conditional_move, xtensa_split_operand_pair, xtensa_split_operand_pair, xtensa_copy_incoming_a7, xtensa_copy_incoming_a7, xtensa_copy_incoming_a7, xtensa_copy_incoming_a7, xtensa_output_literal, xtensa_output_literal, xtensa_output_literal): Likewise. * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise. * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0, movsicc_internal1, movsfcc_internal0, movsfcc_internal1): Likewise. From-SVN: r98979
2005-04-29trans-expr.c (gfc_conv_expr_present): Fix broken assert.Paul Brook4-2/+37
2005-04-29 Paul Brook <paul@codesourcery.com> * trans-expr.c (gfc_conv_expr_present): Fix broken assert. Update comment. From-SVN: r98968
2005-04-28Fix problems noticed while reviewing patch from Alex Oliva.James E Wilson2-4/+7
* config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment. (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries. From-SVN: r98966
2005-04-28opt-functions.awk (var_set): Emit proper initializer for non-target bitfields.DJ Delorie2-2/+12
* opt-functions.awk (var_set): Emit proper initializer for non-target bitfields. From-SVN: r98962
2005-04-28dbxout.c (have_used_extensions): Remove.Devang Patel2-34/+10
* dbxout.c (have_used_extensions): Remove. (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of have_used_extensions. From-SVN: r98958
2005-04-29Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r98955.2
2005-04-29gfortran.h (gfc_namespace): Add seen_implicit_none field.Tobias Schlüter4-2/+48
fortran/ * gfortran.h (gfc_namespace): Add seen_implicit_none field. * symbol.c (gfc_set_implicit_none): Give error if there's a previous IMPLICIT NONE, set seen_implicit_none. (gfc_merge_new_implicit): Error if there's an IMPLICIT NONE statement. testsuite/ * gfortran.dg/implicit_4.f90: New test. From-SVN: r98952
2005-04-29target-supports.exp (check_profiling_available): Return false for xtensa-*-elf.Bob Wilson2-0/+6
* lib/target-supports.exp (check_profiling_available): Return false for xtensa-*-elf. From-SVN: r98950
2005-04-28fortran-torture.exp (fortran-torture.exp): Catch error if file cannot be ↵David Billinghurst2-1/+6
deleted. 2004-04-29 David Billinghurst (David.Billinghurst@riotinto.com) * lib/fortran-torture.exp (fortran-torture.exp): Catch error if file cannot be deleted. From-SVN: r98949
2005-04-28Fix install doc problems reported by Jean-Paul RigaultJames E Wilson2-9/+16
Fix install doc problems reported by Jean-Paul Rigault * doc/install.texi: Update -enable-languages info. Correct path to html docs. From-SVN: r98947
2005-04-28gfortran.h (gfc_gsymbol): Make name a const char *.Tobias Schlüter3-2/+8
* gfortran.h (gfc_gsymbol): Make name a const char *. * symbol.c (gfc_get_gsymbol): Allocate gsymbol name via gfc_get_string. From-SVN: r98942
2005-04-28optc-gen.awk (END): Make sure no variable is defined more than once.DJ Delorie4-15/+53
* optc-gen.awk (END): Make sure no variable is defined more than once. * opth-gen.awk (END): Allocate bits on a per-variable basis. Allow for bitfield variables other than target_flags. * doc/options.text (Mask): Document that you may specify a variable other than target_flags. From-SVN: r98940
2005-04-28Prevent out-of-bounds array access in reload.Martin Koegler2-2/+8
PR rtl-optimization/18877 * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg number in val.start. From-SVN: r98938
2005-04-28re PR target/20813 (ICE in gen_reg_rtx for 3 spec tests)David Edelsohn5-8/+21
PR target/20813 * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add MASK_PPC_GFXOPT. * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same. * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same. * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same. From-SVN: r98934
2005-04-28pr18178.C, [...]: Use cleanup-tree-dump.Kazu Hirata26-5/+41
* g++.dg/tree-ssa/pr18178.C, gcc.dg/tree-ssa/20030821-1.c, gcc.dg/tree-ssa/20050314-1.c, gcc.dg/tree-ssa/alias-1.c, gcc.dg/tree-ssa/phi-opt-1.c, gcc.dg/tree-ssa/phi-opt-2.c, gcc.dg/tree-ssa/phi-opt-3.c, gcc.dg/tree-ssa/phi-opt-4.c, gcc.dg/tree-ssa/phi-opt-5.c, gcc.dg/tree-ssa/pr18133-1.c, gcc.dg/tree-ssa/pr18133-2.c, gcc.dg/tree-ssa/pr18134.c, gcc.dg/tree-ssa/pr20470.c, gcc.dg/tree-ssa/pr20657.c, gcc.dg/tree-ssa/pr20702.c, gcc.dg/tree-ssa/pr20913.c, gcc.dg/tree-ssa/pr21001.c, gcc.dg/tree-ssa/stdarg-1.c, gcc.dg/tree-ssa/stdarg-2.c, gcc.dg/tree-ssa/stdarg-3.c, gcc.dg/tree-ssa/stdarg-4.c, gcc.dg/tree-ssa/stdarg-5.c, gcc.dg/tree-ssa/structopt-1.c, gcc.dg/tree-ssa/structopt-2.c, gcc.dg/tree-ssa/structopt-3.c: Use cleanup-tree-dump. From-SVN: r98928
2005-04-28arm.c (legitimize_pic_address): Fix sense of assertion test for creating ↵Richard Earnshaw2-1/+6
pseudos when the base offset is too large. * arm.c (legitimize_pic_address): Fix sense of assertion test for creating pseudos when the base offset is too large. From-SVN: r98924
2005-04-28global.c (earlyclobber_regclass): Change the type to VEC(int,heap).Kazu Hirata2-21/+46
* global.c (earlyclobber_regclass): Change the type to VEC(int,heap). (check_earlyclobber): Update uses of earlyclobber_regclass. (mark_reg_use_for_earlyclobber): Likewise. (calculate_local_reg_bb_info): Allocate and free earlyclobber_regclass using the VEC API. From-SVN: r98922
2005-04-28re PR fortran/20865 (statement function shall not be supplied as procedure ↵Francois-Xavier Coudert4-0/+27
argument) PR fortran/20865 * resolve.c (resolve_actual_arglist): Issue an error if a statement functions is used as actual argument. * gfortran.dg/pr20865.f90: New test. From-SVN: r98919
2005-04-28tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus assert.Nathan Sidwell2-8/+5
* tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus assert. From-SVN: r98916
2005-04-28attribs.c, [...]: Update copyright.Kazu Hirata83-82/+123
* attribs.c, c-pragma.c, caller-save.c, cfghooks.h, coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c, errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c, genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def, integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c, machmode.def, mips-tfile.c, params.c, pretty-print.c, print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h, tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c, config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md, config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h, config/i386/cygming.h, config/i386/djgpp.h, config/i386/lynx.h, config/i386/netware.c, config/i386/winnt.c, config/ia64/ia64-c.c, config/iq2000/iq2000.c, config/m32r/little.h, config/m68k/m68k-protos.h, config/m68k/m68k.h, config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md, config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c, config/mn10300/mn10300.h, config/ns32k/netbsd.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-hpux11.h, config/pdp11/pdp11.c, config/pdp11/pdp11.h, config/rs6000/darwin.h, config/rs6000/default64.h, config/rs6000/rs6000-c.c, config/s390/2064.md, config/s390/2084.md, config/s390/s390-modes.def, config/s390/s390-protos.h, config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c, config/stormy16/stormy16.c, config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h, config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update copyright. From-SVN: r98914
2005-04-28bt-load.c, [...]: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and ↵Kazu Hirata15-26/+31
INSN_P where appropriate. * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c, function.c, global.c, lcm.c, loop-invariant.c, optabs.c, reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate. From-SVN: r98913
2005-04-28* tree.h (edge_def): Remove.Kazu Hirata2-2/+2
From-SVN: r98911
2005-04-28* config.gcc: Obsolete c4x-* and tic4x-*.Kazu Hirata2-0/+4
From-SVN: r98908
2005-04-28modulo-sched.c, [...]: Use targetm.foo instead of (*targetm.foo).Kazu Hirata3-8/+13
* modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of (*targetm.foo). From-SVN: r98907
2005-04-28c-typeck.c (build_compound_expr): Correct logic in last change.Joseph Myers4-4/+21
* c-typeck.c (build_compound_expr): Correct logic in last change. testsuite: * gcc.dg/void-cast-2.c: New test. From-SVN: r98901
2005-04-27Fix issues brought up by Nathan's assertify patch for the ia64 backend.James E Wilson2-67/+50
* config/ia64/ia64.c (update_set_flags): Delete ppred and pcond parameters. Replace conditional move code with assert checking for ar.lc. Delete obsolete comments. (set_src_needs_barrier): Delete cond parameter, and code using it. (rtx_needs_barrier): Delete initialization of cond. Fix typo in assert checking for PR_REGS. Fix calls to update_set_flags and set_src_needs_barrier. (group_barrier_needed): Renamed from group_barrier_needed_p. Fix all callers. Rewrite explanatory comment before the function. (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p. Fix all callers. From-SVN: r98900
2005-04-28* doc/cpp.texi: gcc now implements universal character names.Mike Stump2-2/+6
From-SVN: r98898
2005-04-28Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r98896.2
2005-04-27* Fix Paul's email address in ChangeLog entry.Julian Brown1-1/+1
From-SVN: r98890
2005-04-27re PR c/21159 ("no effect" warning despite cast to void*)Joseph Myers4-3/+32
PR c/21159 * c-typeck.c (build_compound_expr): Don't warn for left-hand side being a compound expression whose right-hand side is cast to void. testsuite: * gcc.dg/void-cast-1.c: New test. From-SVN: r98886
2005-04-27Correct fixes for various hot/cold partitioning concerns.Caroline Tice9-194/+302
2005-04-27 Caroline Tice <ctice@apple.com> * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Remove targetm.have_named_sections test. (fix_edges_for_rarely_executed_code): Likewise. (insert_section_boundary_note): Likewise. (reorder_basic_blocks): Check partitioning flag before calling verify_hot_cold_block_grouping. * dbxout.c (dbxout_function_end): Get hot/cold section labels from the function struct rather than global variables. * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro. (COLD_END_LABEL): Likewise (cold_text_section_label): New static global variable. (cold_end_label): Likewise. (dwarf2out_switch_text_section): Get hot/cold section labels from the function struct rather than global variables; test to make sure cfun is defined. (output_aranges): Use cold_text_section_label and cold_end_label; check partitioning flag before putting out delta. (output_ranges): Remove incorrect code attempting to use hot/cold labels. (output_line_info): Get cold section label from function struct; test to make sure cfun is defined. (add_location_or_const_value_attribute): Likewise. (dwarf2out_var_location): Likewise. (dwarf2out_init): Generate cold_text_section_label and cold_end_label; write out cold_text_section_label if partition flag is set. (dwarf2out_finish): Write out cold_end_label if partition flag is set; * function.h (struct function): Add new fields to point to hot/cold section labels: hot_section_label, cold_section_label, hot_section_end_label and cold_section_end_label; also add new field for cold text section name, unlikely_text_section_name. * opts.c (decode_options): Turn off partitioning flag if !targetm.have_named_sections. * output.h (hot_section_label): Remove. (hot_section_end_label): Remove. (cold_section_end_label): Remove. (unlikely_section_label): Remove. (unlikely_text_section_name): Remove. * passes.c (rest_of_handle_final): Remove extra blank line. * varasm.c (unlikely_section_label): Remove. (hot_section_label): Remove. (hot_section_end_label): Remove. (cold_section_end_label): Remove. (unlikely_text_section_name): Remove. (initialize_cold_section_name): Modify to call targetm.strip_name_encoding; to store cold section name in current function struct, if it exists; and to only use the decl_section_name if flag_named_sections is true. (unlikely_text_section): Modify to get section name out of current function struct, if there is one; otherwise build it from UNLIKELY_EXECUTED_TEXT_SECTION_NAME. (in_unlikely_text_section): Likewise. (named_section): Modify to get/put cold section name in current function struct, if there is one. (function_section): Change 'bool unlikely' to 'int reloc'; check targetm.have_named_sections before calling named_section. (current_function_section): Likewise. (assemble_start_function): Modify to get/put unlikely_text_section_name in current function struct; modify to get hot/cold section labels from function struct; initialize labels using ASM_GENERATE_INTERNAL_LABEL; test partitioning flag before writing out hot section label. (assemble_end_function): Test partitioning flag before writing out hot/cold section labels. (default_section_type_flags_1): Get cold text section name from function struct if there is one; Set flags correctly for cold text section if there is not a current function struct. From-SVN: r98885
2005-04-27tree-ssa-propagate.c (set_rhs): Revert last change.Richard Guenther2-2/+5
2005-04-27 Richard Guenther <rguenth@gcc.gnu.org> * tree-ssa-propagate.c (set_rhs): Revert last change. From-SVN: r98882
2005-04-27* explow.c (convert_memory_address): Add gcc_assert.Steve Ellcey2-0/+5
From-SVN: r98881
2005-04-27configure.ac: Check for ld --sysroot support.Mark Mitchell5-0/+78
* configure.ac: Check for ld --sysroot support. * gcc.c: Document %R specifier for specs. (SYSROOT_SPEC): New macro. (sysroot_spec): New variable. (static_specs): Add sysroot_spec. (main): Pass the sysroot spec to the linker if appropriate. * configure: Regenerated. * config.in: Likewise. From-SVN: r98880
2005-04-27fold-const.c (fold_binary): Use build_fold_addr_expr for address calculation ↵Richard Guenther2-15/+8
and INDIRECT_REF handling. 2005-04-27 Richard Guenther <rguenth@gcc.gnu.org> * fold-const.c (fold_binary): Use build_fold_addr_expr for address calculation and INDIRECT_REF handling. From-SVN: r98877
2005-04-27postreload-gcse.c (hash_scan_set): Remove bogus assertion.Andrew Haley2-3/+4
2005-04-27 Andrew Haley <aph@redhat.com> * postreload-gcse.c (hash_scan_set): Remove bogus assertion. From-SVN: r98873
2005-04-27arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame pointer when thumb ↵Nathan Sidwell3-2/+11
backtracing is on. * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame pointer when thumb backtracing is on. * config/fp-bit.c (abort): Revert change. From-SVN: r98872
2005-04-27gcj.texi (libgcj Runtime Properties): Remove obsolete ↵Bryce McKinlay2-24/+16
gnu.gcj.runtime.NameFinder.* system properties. * gcj.texi (libgcj Runtime Properties): Remove obsolete gnu.gcj.runtime.NameFinder.* system properties. Update documentation for gnu.gcj.runtime.NameFinder.use_addr2line and gnu.gcj.progname. From-SVN: r98871
2005-04-27* c-semantics.c (add_stmt): Don't test STATEMENT_CODE_PIan Lance Taylor2-1/+5
From-SVN: r98868
2005-04-27* tree-ssa-dce.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r98866
2005-04-27Fix a typo.Kazu Hirata1-3/+2
From-SVN: r98862
2005-04-27explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA): Kill ↵David S. Miller5-148/+50
setjmpless_size. * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA): Kill setjmpless_size. current_function_calls_setjmp is completely computed when we are called, so just use the optimized size value instead of using REG_SAVE_AREA notes. (optimize_save_area_alloca): Delete.... * rtl.h (optimize_save_area_alloca): Likewise... * passes.c (rest_of_compilation): and don't call it any more. * reg-notes.def (SAVE_AREA): Delete. From-SVN: r98861
2005-04-27fp-bit.c (abort): Add noreturn attribute.Nathan Sidwell4-10/+17
* config/fp-bit.c (abort): Add noreturn attribute. * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and gcc_unreachable as appropriate. (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise. * config/avr/avr.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise. From-SVN: r98854
2005-04-27tree-complex.c (expand_vector_operations_1): Do not build ↵Paolo Bonzini2-3/+9
VIEW_CONVERT_EXPR's for the lhs. 2005-04-27 Paolo Bonzini <bonzini@gnu.org> * tree-complex.c (expand_vector_operations_1): Do not build VIEW_CONVERT_EXPR's for the lhs. From-SVN: r98853
2005-04-27pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove unnecessary ↵Nathan Sidwell3-13/+11
noncanonical RTL handling. * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove unnecessary noncanonical RTL handling. * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use gcc_assert and gcc_unreachable. From-SVN: r98852