aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-05-20optimize.c (calls_setjmp_r): Remove.Andrew Pinski4-40/+7
2005-05-20 Andrew Pinski <pinskia@physics.uc.edu> * optimize.c (calls_setjmp_r): Remove. (calls_setjmp_p): Remove. * cp-tree.c (calls_setjmp_p): Remove. * decl.c (finish_function): Do not call calls_setjmp_p. From-SVN: r82049
2004-05-20c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp' with 'TRAMP' in the body of ↵Nick Clifton1-0/+5
the macro definition. * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp' with 'TRAMP' in the body of the macro definition. From-SVN: r82048
2004-05-19re PR target/15383 (__float128 function name is used for long double)H.J. Lu3-23/+66
2004-05-19 H.J. Lu <hongjiu.lu@intel.com> PR target/15383 * config/ia64/ia64.c (ia64_expand_compare): Don't check TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and cmptf_libfunc isn't set. (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX conventions. (ia64_sysv4_init_libfuncs): New. * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as ia64_sysv4_init_libfuncs. From-SVN: r82047
2004-05-20Daily bump.GCC Administrator1-1/+1
From-SVN: r82045
2004-05-20re PR other/15526 (-ftrapv aborts on 0 * (-1))Falk Hueffner4-3/+36
PR other/15526 * libgcc2.c (__mulvsi3): Fix overflow test. * gcc.dg/ftrapv-1.c: New test case. From-SVN: r82042
2004-05-19re PR c/14171 (Bootstrap (--enable-intermodule) dies with reg-stack.c:235: ↵Andrew Pinski1-0/+1
error: 'nan' redeclared as different kind of symbol) 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu> PR c/14171 * reg-stack.c (nan): Rename to ... (not_a_num): Here. (reg_to_stack): Rename nan to not_a_num. (subst_stack_regs_pat): Likewise. (convert_regs_entry): Likewise. (convert_regs_1): Likewise. From-SVN: r82040
2004-05-19reg-stack.c (nan): Rename to ...Andrew Pinski2-8/+15
2004-05-19 Andrew Pinski <pinskia@physics.uc.edu> * reg-stack.c (nan): Rename to ... (not_a_num): Here. (reg_to_stack): Rename nan to not_a_num. (subst_stack_regs_pat): Likewise. (convert_regs_entry): Likewise. (convert_regs_1): Likewise. From-SVN: r82039
2004-05-19tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.Jeff Law2-23/+42
* tree-into-ssa.c (prepare_operand_for_rename): New argument is_use. If the operand is for a use, then strip away the SSA_NAME, do not strip away the SSA_NAME for a set. Never call release_ssa_name. (mark_def_sites): Appropriately pass additional argument to prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME, then set the VDEF_RESULT to the VDEF_OP. (set_def_block): Strip away any SSA_NAME to get to the real underlying variable. From-SVN: r82035
2004-05-19tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal ↵Andrew Pinski2-1/+6
with tree_int_cst_equal. 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu> * tree-cfg.c (find_case_label_for_value): Replace call to simple_cst_equal with tree_int_cst_equal. From-SVN: r82033
2004-05-19tree-ssa-phiopt.c (value_replacement): Handle the case where the desired ↵Jeff Law2-0/+19
edge out of COND_BLOCK reaches OTHER_BLOCK... * tree-ssa-phiopt.c (value_replacement): Handle the case where the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than BB directly. From-SVN: r82031
2004-05-19Multiple fixes: PRs 14692, 15274 and 15463Zdenek Dvorak9-205/+470
PR c++/15463 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on result of inverse. PR rtl-optimization/15274 * loop-iv.c (determine_max_iter, shorten_into_mode, iv_number_of_iterations): Handle constants correctly. * rtl.h (get_mode_bounds): Declaration changed. * stor-layout.c (get_mode_bounds): Return a constant suitable for the target mode. PR rtl-optimization/14692 * loop-unswitch.c (may_unswitch_on): Try folding the result. (unswitch_single_loop): Work correctly when may_unswitch_on returns a folded constant. * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B. * simplify-rtx.c (simplify_const_relational_operation): Optimize comparisons with mode bounds. * function.c (struct temp_slot): Add new field prev. (free_after_compilation, init_temp_slots): Free new fields. (cut_slot_from_list, insert_slot_to_list, temp_slots_at_level, max_slot_level, move_slot_to_level, make_slot_available): New functions. (assign_stack_temp_for_type, combine_temp_slots, find_temp_slot_from_address, preserve_temp_slots, preserve_rtl_expr_result, free_temp_slots, free_temps_for_rtl_expr, pop_temp_slots): Work with the new structure of lists. (mark_all_temps_used): Removed. * function.h (struct function): Field x_temp_slots replaced by x_used_temp_slots and x_avail_temp_slots. (temp_slots): Replaced by ... (used_temp_slots, avail_temp_slots): New. * tree.h (mark_all_temps_used): Declaration removed. * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze, simplify_using_assignment): Take the expression out of the expr_list wrapper. * loop-iv.c (iv_number_of_iterations): Improve clasification of infinite loops. From-SVN: r82028
2004-05-19typeck.c: Remove non-printable character 160.Paolo Bonzini2-1/+5
2004-05-19 Paolo Bonzini <bonzini@gnu.org> * typeck.c: Remove non-printable character 160. From-SVN: r82027
2004-05-19[multiple changes]Arnaud Charlet5-32/+93
2004-05-19 Joel Brobecker <brobecker@gnat.com> * exp_dbug.ads: Correct comments concerning handling of overloading, since we no longer use $ anymore. 2004-05-19 Sergey Rybin <rybin@act-europe.fr> * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not ignore errors if ASIS_Mode is set. This prevents creating ASIS trees with illegal subunits. 2004-05-19 Ed Schonberg <schonberg@gnat.com> * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram body with front-end inlining enabled, check whether an inline pragma appears immediately after the body and applies to it. * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is enabled and the pragma appears after the body of the subprogram. From-SVN: r82026
2004-05-19tm.texi (TARGET_RTX_COSTS): Document that instruction costs should be based ↵Roger Sayle2-1/+12
on code size when... * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction costs should be based on code size when optimizing for size. From-SVN: r82025
2004-05-19fold-const.c: Remove non-printable character 160.Paolo Bonzini2-1/+5
2004-05-19 Paolo Bonzini <bonzini@gnu.org> * fold-const.c: Remove non-printable character 160. From-SVN: r82024
2004-05-19Credit Feng Wang <fengwang@nudt.edu.cn> in ChangeLog.Feng Wang2-4/+5
From-SVN: r82023
2004-05-19invoke.texi (ARM Options): Fix typo.Nick Clifton2-13/+5
* doc/invoke.texi (ARM Options): Fix typo. Remove descrption of -mshort-load-bytes and -mno-short-load-bytes. From-SVN: r82022
2004-05-19Fix typos (missing closing parentheses)Nick Clifton2-3/+10
From-SVN: r82021
2004-05-19Expanders cleanups after tree-ssa merge, part 1.Steven Bosscher4-427/+46
2004-05-19 Steven Bosscher <stevenb@suse.de> Expanders cleanups after tree-ssa merge, part 1. * expr.c (store_constructor): Build loop start and end by hand instead of via loop functions from stmt.c. (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR. Remove the code to expand them. * stmt.c (loop_stack): Remove this and everything related. (struct nesting, enum nesting_desc): Update. (expand_fixup): Likewise. (expand_loop_start, expand_start_loop_continue_elsewhere, expand_start_null_loop, expand_loop_continue_here, expand_end_loop, expand_end_null_loop, expand_continue_loop, expand_exit_loop, expand_exit_loop_if_false, expand_exit_loop_top_cond, expand_exit_something): Remove. * tree.h: Remove prototypes. From-SVN: r82018
2004-05-18tree-ssa-phiopt.c (abs_replacement): New function.Andrew Pinski5-22/+237
* tree-ssa-phiopt.c (abs_replacement): New function. (empty_block_p): New function extracted from... (candidate_bb_for_phi_optimization): Break out empty block test. (conditional_replacement): Use empty_block_p. (value_replacement): Similarly. * gcc.dg/tree-ssa/20040514-2.c: Update expected output. * gcc.dg/tree-ssa/20040518-2.c: New test. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r82017
2004-05-19tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate if this ↵Mike Stump9-13/+55
label is for eh. * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate if this label is for eh. * config/darwin-protos.h (darwin_emit_unwind_label): Likewise. * config/darwin.c (darwin_emit_unwind_label): Likewise. * dwarf2out.c (output_call_frame_info): Likewise. * output.h (default_emit_unwind_label): Likewise. * target.h (unwind_label): Likewise. * varasm.c (default_emit_unwind_label): Likewise. * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE, DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION, DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION, DEBUG_RANGES_SECTION): Define. Radar 3657068. Co-Authored-By: Devang Patel <dpatel@apple.com> From-SVN: r82016
2004-05-19* cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)Zack Weinberg12-149/+71
(cgraph_varpool_hash_node, eq_cgraph_varpool_node) (cgraph_varpool_node): Use DECL_UID for the key, not DECL_ASSEMBLER_NAME. (cgraph_function_possibly_inlined_p): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. (change_decl_assembler_name): No need to muck with the hash tables. (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier): Delete. * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. * cgraph.h: Remove prototypes of deleted functions. * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED. (mark_decl_referenced): New function. * tree.h: Prototype mark_decl_referenced. * final.c (output_addr_const) <case SYMBOL_REF>: Call mark_decl_referenced before assemble_name. * c-decl.c (finish_decl): Use mark_decl_referenced. cp: * decl.c (cp_finish_decl): Use mark_decl_referenced. * decl2.c (maybe_make_one_only): Likewise. * method.c (use_thunk): Likewise. From-SVN: r82015
2004-05-19f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.Feng Wang8-190/+322
* f95-lang.c (gfc_init_builtin_functions): Use vold_list_node. Create decls for __builtin_pow{,f}. * gfortran.h (PREFIX_LEN): Define. * trans-decl.c (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. (gfc_build_intrinsic_function_decls): Create decls for powi. * trans-expr.c (powi_table): Add. (gfc_conv_integer_power): Remove. (gfc_conv_powi): New function. (gfc_conv_cst_int_power): New function. (gfc_conv_power_op): Use new powi routines. * trans.h (struct gfc_powdecl_list): Add. (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. testsuite/ * gfortran.fortran-torture/execute/power.f90: Test constant integers. libgfortran/ * Makefile.am (i_pow_c): Set it. Add build rule. (gfor_built_src): Use it. (m4_files): add m4/pow.m4. * Makefile.in: Regenerate. * m4/pow.m4: New file. * generated/pow_*.c: Regenerate. From-SVN: r82014
2004-05-19Daily bump.GCC Administrator1-1/+1
From-SVN: r82012
2004-05-19* trans.c, trans-decl.c: Fix comment typos.Tobias Schlüter3-8/+12
From-SVN: r82008
2004-05-18* class.c (build_base_path): Tidy a bit.Jason Merrill2-7/+15
From-SVN: r82004
2004-05-18Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.Andrew Pinski5-15/+129
* Makefile.in (tree-ssa-phiopt.o): Depends on flags.h. * tree-ssa-phiopt.c: Include flags.h. (conditional_replacement): Remove argument names from prototype. Minor formatting and comment fixes. (tree_ssa_phiopt): If conditional_replacement returns false, then call value_replacement. (value_replacement): New function. * gcc.dg/tree-ssa/20040518-1.c: New test. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r81999
2004-05-18* trans-const.c (gfc_conv_mpf_to_tree): Fix typo.Tobias Schlüter2-2/+6
From-SVN: r81997
2004-05-18tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted from ↵Jeff Law2-60/+113
conditional_replacement. * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted from conditional_replacement. (candidate_bb_for_phi_optimization): Similarly. (conditional_replacement): Use replace_phi_with_stmt and candidate_bb_for_phi_optimization. From-SVN: r81996
2004-05-18* tree-ssa-phiopt.c: Fix various formatting issues.Jeff Law2-79/+80
From-SVN: r81995
2004-05-18* gcc.c-torture/execute/991216-3.c: Delete, duplicate of 991216-2.c.Zack Weinberg2-44/+7
From-SVN: r81993
2004-05-18s390.c (s390_expand_movstr, [...]): Do not use expand_start_loop and ↵Steven Bosscher2-6/+21
expand_end_loop, instead build the loop manually. * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpmem): Do not use expand_start_loop and expand_end_loop, instead build the loop manually. From-SVN: r81990
2004-05-18arith.c (gfc_int2complex): Fix incorrect range checking.Steve Kargl2-1/+5
2004-05-17 Steve Kargl <kargls@comcast.net> * arith.c (gfc_int2complex): Fix incorrect range checking. From-SVN: r81985
2004-05-18fix broken CL entrySteven Bosscher1-1/+2
From-SVN: r81975
2004-05-18rs6000.md (ctrsi_internal3): Delete.Alan Modra2-98/+5
* config/rs6000/rs6000.md (ctrsi_internal3): Delete. (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete. From-SVN: r81973
2004-05-17Forgot to commit.Jeff Law1-3/+13
From-SVN: r81969
2004-05-17toplev.h (flag_delete_null_pointer_checks): Move from here to...Jeff Law7-24/+80
* toplev.h (flag_delete_null_pointer_checks): Move from here to... * flags.h (flag_delete_null_pointer_checks): Here. * tree-flow.h (cprop_into_successor_phis): Add argument to prototype. * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO. (add_phi_arg, remove_phi_arg_num): Similarly. * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero property into PHI nodes. * tree-ssa-dom.c: Remove redundant inclusion of flags.h. (record_equivalences_from_phis): If all PHI arguments are known to be nonzero, then the result must be nonzero as well. (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks appropriately. Walk the USE-DEF chains and propagate nonzero property as appropriate. * tree.h (PHI_ARG_NONZERO): Define. (phi_arg_d): Add nonzero flag. From-SVN: r81968
2004-05-18Makefile.def, [...]: Remove all mention of libf2c.Zack Weinberg118-164983/+611
top: * Makefile.def, Makefile.tpl, configure.in: Remove all mention of libf2c. * configure, Makefile.in: Regenerate. contrib: * gcc_update: Remove gcc/f/intdoc.texi and all libf2c files from list of files to be touched. * convert_to_f2c, convert_to_g2c, download_f2c: Delete. gcc: * f: Entire directory removed * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE) (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE) (g77_integer_type_node, g77_uinteger_type_node) (g77_longint_type_node, or g77_ulongint_type_node): Delete. * c-common.c (c_common_nodes_and_builtins): Do not initialize the above set of variables. * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET. * doc/invoke.texi, doc/standards.texi: Remove cross-references to g77 manual. gcc/po: * exgettext (spec_error_string): Do not scan beyond the end of the string for a close brace. Do not bail out at the first incidence of %%e. * gcc.pot: Regenerate. From-SVN: r81967
2004-05-18re PR fortran/13930 (derived type with intent(in) attribute not accepted)Paul Brook7-62/+129
PR fortran/13930 * decl.c (add_init_expr_to_sym): Remove incorrect check. (default_initializer): Move to expr.c. (variable_decl): Don't assign default initializer to variables. * expr.c (gfc_default_initializer): Move to here. * gfortran.h (gfc_default_initializer): Add prototype. * resolve.c (resolve_symbol): Check for illegal initializers. Assign default initializer. testsuite/ * gfortran.fortran-torture/execute/der_init_4.f90: New test. From-SVN: r81966
2004-05-18Daily bump.GCC Administrator1-1/+1
From-SVN: r81964
2004-05-18cmplx.f90: Add test for bug in constant folding.Tobias Schlüter2-0/+8
* gfortran.fortran-torture/execute/cmplx.f90: Add test for bug in constant folding. From-SVN: r81961
2004-05-18arith.c (gfc_arith_power): Complex number raised to 0 power is 1.Steve Kargl2-1/+5
2004-05-17 Steve Kargl <kargls@comcast.net> * arith.c (gfc_arith_power): Complex number raised to 0 power is 1. From-SVN: r81959
2004-05-18arith.c (gfc_real2complex): Range checking wrong part of complex number.Steve Kargl2-1/+6
2004-05-17 Steve Kargl <kargls@comcast.net> * arith.c (gfc_real2complex): Range checking wrong part of complex number. From-SVN: r81957
2004-05-17oh oh oh. forgot to add the PR number.Steven Bosscher1-0/+1
From-SVN: r81952
2004-05-17tree-ssa-operands.c (get_expr_operands): Do not treat malloc attributed ↵Steven Bosscher4-5/+33
functions as pure or const. * tree-ssa-operands.c (get_expr_operands): Do not treat malloc attributed functions as pure or const. From-SVN: r81951
2004-05-17* gcc.dg/loop-4.c: New test.Volker Reichelt1-0/+25
From-SVN: r81946
2004-05-17tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from ↵Frank Ch. Eigler2-0/+6
source code with errors. 2004-05-17 Frank Ch. Eigler <fche@redhat.com> * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting from source code with errors. From-SVN: r81945
2004-05-17* check-init.c: Correct minor typos.Ranjit Mathew2-12/+16
From-SVN: r81940
2004-05-17Enable tree browser for all front ends.Ranjit Mathew2-3/+9
* Makefile.in (cc1): Moved @TREEBROWSER@ from here... (BACKEND): ...to here. From-SVN: r81939
2004-05-17i386.c (construct_container): Do not produce BLKmode registers.Jan Hubicka2-2/+11
* i386.c (construct_container): Do not produce BLKmode registers. (classify_argument): Properly compute alignment of complex types. From-SVN: r81937