aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2010-04-25Daily bump.GCC Administrator1-1/+1
From-SVN: r158697
2010-04-24re PR fortran/30073 (Array out of bounds gives name of RHS array not LHS array)Steven G. Kargl4-1/+37
2010-04-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/30073 PR fortran/43793 * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead of mucking with a tree directly. 2010-04-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/30073 PR fortran/43793 gfortran.dg/pr43793.f90: New test. From-SVN: r158692
2010-04-24* doc/contrib.texi (Contributors): Add Dodji Seketeli.Gerald Pfeifer2-0/+7
From-SVN: r158690
2010-04-24re PR tree-optimization/41442 (missed optimization for boolean expression)Bernd Schmidt4-0/+115
gcc/ PR tree-optimization/41442 * fold-const.c (merge_truthop_with_opposite_arm): New function. (fold_binary_loc): Call it. gcc/testsuite/ PR tree-optimization/41442 * gcc.target/i386/pr41442.c: New test. From-SVN: r158689
2010-04-24re PR fortran/43832 (OPEN statement not diagnosing missing unit number)Hans-Peter Nilsson2-34/+5
PR fortran/43832 * gfortran.dg/fgetc_3.f90: Delete bogus test. From-SVN: r158688
2010-04-24re PR fortran/43832 (OPEN statement not diagnosing missing unit number)Jerry DeLisle2-0/+11
2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/43832 * gfortran.dg/open_nounit.f90: New test. From-SVN: r158685
2010-04-24re PR fortran/43832 (OPEN statement not diagnosing missing unit number)Jerry DeLisle2-2/+11
2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/43832 * io.c (gfc_match_open): Remove branch to syntax error. Add call to gfc_error with new error message. From-SVN: r158684
2010-04-24re PR fortran/43841 (Missing temporary for ELEMENTAL function call)Paul Thomas6-7/+116
2010-04-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/43841 PR fortran/43843 * trans-expr.c (gfc_conv_expr): Supply an address expression for GFC_SS_REFERENCE. (gfc_conv_expr_reference): Call gfc_conv_expr and return for GFC_SS_REFERENCE. * trans-array.c (gfc_add_loop_ss_code): Store the value rather than the address of a GFC_SS_REFERENCE. * trans.h : Change comment on GFC_SS_REFERENCE. 2010-04-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/43841 PR fortran/43843 * gfortran.dg/elemental_scalar_args_1.f90 : New test. From-SVN: r158683
2010-04-24Daily bump.GCC Administrator1-1/+1
From-SVN: r158680
2010-04-23toplev.c (general_init): Set default for fdiagnostics-show-option.Manuel López-Ibáñez6-4/+17
2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org> * toplev.c (general_init): Set default for fdiagnostics-show-option. * opts.c (common_handle_option): Allow disabling it. * common.opt (fdiagnostics-show-option): Add Var. Enabled by default. testsuite/ * gcc.dg/Wconversion-integer.c: Update. From-SVN: r158676
2010-04-23expr.c (expand_expr_real_1): Only use conversion between modes if both types ↵Eric Botcazou4-3/+33
are integral. * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion between modes if both types are integral. From-SVN: r158675
2010-04-23re PR tree-optimization/43572 (FAIL: gfortran.dg/PR19872.f execution test; ↵Richard Guenther2-1/+7
formatted read - wrong numbers) 2010-04-23 Richard Guenther <rguenther@suse.de> PR tree-optimization/43572 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses. From-SVN: r158671
2010-04-23re PR middle-end/41734 (ICE in cgraph_mark_functions_to_output, at ↵Richard Guenther3-0/+51
cgraphunit.c:1137 with -fwhopr) 2010-04-23 Richard Guenther <rguenther@suse.de> PR lto/41734 * gcc.dg/lto/20100423-2_0.c: New testcase. * gcc.dg/lto/20100423-2_0.c: Likewise. From-SVN: r158670
2010-04-23re PR lto/43455 (ICE in fold_convert_loc, at fold-const.c:2670 with -O2 -flto)Richard Guenther5-2/+40
2010-04-23 Richard Guenther <rguenther@suse.de> PR lto/43455 * tree-inline.c (tree_can_inline_p): Also check compatibility of return types. * gcc.dg/lto/20100423-1_0.c: New testcase. * gcc.dg/lto/20100423-1_1.c: Likewise. From-SVN: r158669
2010-04-23re PR tree-optimization/43846 (array vs members, total scalarization issues)Martin Jambor4-12/+67
2010-04-23 Martin Jambor <mjambor@suse.cz> PR tree-optimization/43846 * tree-sra.c (struct access): New flag grp_assignment_read. (build_accesses_from_assign): Set grp_assignment_read. (sort_and_splice_var_accesses): Propagate grp_assignment_read. (enum mark_read_status): New type. (analyze_access_subtree): Propagate grp_assignment_read, create accesses also if both direct_read and root->grp_assignment_read. * testsuite/gcc.dg/tree-ssa/sra-10.c: New test. From-SVN: r158668
2010-04-23re PR middle-end/43835 (IPA-SRA doesn't rewrite attributes)Martin Jambor4-0/+65
2010-04-23 Martin Jambor <mjambor@suse.cz> PR middle-end/43835 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the function does not have type attributes. * testsuite/gcc.c-torture/execute/pr43835.c: New test. From-SVN: r158667
2010-04-23re PR lto/42653 (ICE with -g and -flto (requires both flags to crash))Richard Guenther4-1/+51
2010-04-23 Richard Guenther <rguenther@suse.de> PR lto/42653 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT of FUNCTION_DECLs. * g++.dg/lto/20100423-1_0.C: New testcase. From-SVN: r158666
2010-04-23sese.h (create_if_region_on_edge): Remove.Laurynas Biveinis6-7/+17
2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com> * sese.h (create_if_region_on_edge): Remove. * sese.c (create_if_region_on_edge): Make static. * tree-inline.c: Do not include ggc.h. * expr.c: Do not include ggc.h. * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from dependencies. From-SVN: r158661
2010-04-23Daily bump.GCC Administrator1-1/+1
From-SVN: r158660
2010-04-22re PR target/43744 (SH: Error: pcrel too far)Kaz Kojima2-0/+23
PR target/43744 * config/sh/sh.c (find_barrier): Don't emit a constant pool in the middle of insns for casesi_worker_2. From-SVN: r158655
2010-04-22interchange-0.c: Fix dg-final directive.Uros Bizjak3-18/+21
* gcc.dg/graphite/interchange-0.c: Fix dg-final directive. From-SVN: r158653
2010-04-22* config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.David Edelsohn2-2/+6
From-SVN: r158652
2010-04-22Fix PR number in the previous commit to 43842.Ira Rosen2-2/+2
From-SVN: r158651
2010-04-22re PR tree-optimization/43842 (ice in vect_create_epilog_for_reduction)Ira Rosen5-5/+80
PR tree-optimization/43842 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle loop unrolling in update of exit phis. Fix comment. * tree-vect-slp.c (vect_analyze_slp): Check that there are at least two reduction statements in the loop before starting SLP analysis. From-SVN: r158650
2010-04-22wmul-1.c: Add dg-require-effective-target ilp32.Bernd Schmidt3-0/+7
* gcc.target/i386/wmul-1.c: Add dg-require-effective-target ilp32. * gcc.target/i386/wmul-2.c: Likewise. From-SVN: r158649
2010-04-22builtin-cproj-3.c: Rename and move ...Kaveh R. Ghazi2-0/+5
* gcc.dg/torture/builtin-cproj-3.c: Rename and move ... * gcc.dg/cproj-fails-with-broken-glibc.c: ... to here. From-SVN: r158647
2010-04-22* config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.Nick Clifton2-4/+8
From-SVN: r158646
2010-04-22tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR to ↵Alexander Monakov4-7/+59
simplify a + ~a. 2010-04-22 Alexander Monakov <amonakov@ispras.ru> * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR to simplify a + ~a. * gfortran.dg/reassoc_6.f: New testcase. From-SVN: r158645
2010-04-22tree-parloops.c (loop_parallel_p): New argument parloop_obstack.Laurynas Biveinis9-115/+143
2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com> * tree-parloops.c (loop_parallel_p): New argument parloop_obstack. Pass it down. (parallelize_loops): New variable parloop_obstack. Initialize it, pass it down, free it. * tree-loop-linear.c (linear_transform_loops): Pass down lambda_obstack. * tree-data-ref.h (lambda_compute_access_matrices): New argument of type struct obstack *. * tree-data-ref.c (analyze_subscript_affine_affine): New variable scratch_obstack. Initialize it, pass down, free it. * lambda.h (lambda_loop_new): Remove. (lambda_matrix_new, lambda_matrix_inverse) (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New argument of type struct obstack *. * lambda-trans.c (lambda_trans_matrix_new): New argument lambda_obstack. Pass it down, use obstack allocation for ret. (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass it down. * lambda-mat.c (lambda_matrix_get_column) (lambda_matrix_project_to_null): Remove. (lambda_matrix_new): New argument lambda_obstack. Use obstack allocation for mat. (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument lambda_obstack. * lambda-code.c (lambda_loop_new): New function. (lambda_lattice_new, compute_nest_using_fourier_motzkin) (lambda_compute_auxillary_space, lambda_compute_target_space) (lambda_loopnest_transform, gcc_loop_to_lambda_loop) (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack. (build_access_matrix): New argument lambda_obstack. Use obstack allocation for am. (lambda_compute_step_signs, lambda_compute_access_matrices): New argument lambda_obstack. Pass it down. From-SVN: r158644
2010-04-22optabs.h (expand_widening_mult): Declare.Bernd Schmidt2-1/+7
* optabs.h (expand_widening_mult): Declare. From-SVN: r158643
2010-04-22re PR middle-end/29274 (not using mulsidi3)Bernd Schmidt3-0/+36
PR middle-end/29274 * gcc.target/arm/wmul-1.c: New test. * gcc.target/arm/wmul-2.c: New test. From-SVN: r158642
2010-04-22re PR tree-optimization/43845 (Segfault when using __attribute__((const)), ↵Richard Guenther4-13/+51
versions 4.4.3 and 4.6) 2010-04-22 Richard Guenther <rguenther@suse.de> PR tree-optimization/43845 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly lookup the CALL_EXPR function and arguments. * gcc.c-torture/compile/pr43845.c: New testcase. From-SVN: r158641
2010-04-22* config/stormy16/stormy16.cNick Clifton7-290/+120
(xstormy16_asm_output_aligned_common): Handle a NULL decl parameter. * config/stormy16/stormy16.h: Tidy up formatting. (DONT_USE_BUILTIN_SETJMP): Remove definition. * config/stormy16/stormy16.c (cbranchsi4): Delete pattern. (ineqbranchsi): Delete pattern. * config/stormy16/stormy16-lib2-ucmpsi2.c: New file. * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function. * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add stormy16-lib2-ucmpsi2.c. From-SVN: r158640
2010-04-22ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and ↵Bernd Schmidt4-18/+44
df_simulate_find_noclobber_defs as appropriate. * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and df_simulate_find_noclobber_defs as appropriate. Keep track of an extra set merge_set_noclobber, and use it to relax the final test slightly. * df.h (df_simulate_find_noclobber_defs): Declare. * df-problems.c (df_simulate_find_defs): Don't ignore partial or conditional defs. (df_simulate_find_noclobber_defs): New function. From-SVN: r158639
2010-04-22i386.md: Use {} around multi-line preparation statements.Uros Bizjak2-16/+26
* config/i386/i386.md: Use {} around multi-line preparation statements. From-SVN: r158635
2010-04-222010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>Laurynas Biveinis4-86/+147
* c-tree.h (push_init_level, pop_init_level, set_init_index) (process_init_element): New argument of type struct obstack *. * c-typeck.c (push_init_level, pop_init_level, set_designator) (set_init_index, set_init_label, set_nonincremental_init) (set_nonincremental_init_from_string, find_init_member) (output_init_element, output_pending_init_elements) (process_init_element): New argument braced_init_obstack. Pass it down. (push_range_stack, add_pending_init): New argument braced_init_obstack. Use obstack allocation. * c-parser.c (c_parser_initelt, c_parser_initval): New argument braced_init_obstack. Pass it down. (c_parser_braced_init): New variables ret, braced_init_obstack. Initialize obstack, pass it down and finally free it. From-SVN: r158634
2010-04-22re PR middle-end/29274 (not using mulsidi3)Bernd Schmidt13-102/+356
gcc/ PR middle-end/29274 * optabs.h (expand_widening_mult): Declare. * tree-pass.h (pass_optimize_widening_mul): Declare. * tree-ssa-math-opts.c (execute_optimize_widening_mul, gate_optimize_widening_mul): New static functions. (pass_optimize_widening_mul): New. * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case. <case MULT_EXPR>: Remove support for widening multiplies. * tree.def (WIDEN_MULT_EXPR): Tweak comment. * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use simplify_gen_unary rather than directly building extensions. * tree-cfg.c (verify_gimple_assign_binary): Add tests for WIDEN_MULT_EXPR. * expmed.c (expand_widening_mult): New function. * passes.c (init_optimization_passes): Add pass_optimize_widening_mul. gcc/testsuite/ PR middle-end/29274 * gcc.target/i386/wmul-1.c: New test. * gcc.target/i386/wmul-2.c: New test. * gcc.target/bfin/wmul-1.c: New test. * gcc.target/bfin/wmul-2.c: New test. From-SVN: r158633
2010-04-22re PR fortran/43829 (Scalarization of reductions)Richard Guenther6-8/+70
2010-04-22 Richard Guenther <rguenther@suse.de> PR fortran/43829 * resolve.c (gfc_resolve_index): Wrap around ... (gfc_resolve_index_1): ... this. Add parameter to allow any integer kind index type. (resolve_array_ref): Allow any integer kind for the start index of an array ref. * gfortran.dg/vector_subscript_6.f90: New testcase. * gfortran.dg/assign_10.f90: Adjust. From-SVN: r158632
2010-04-22Daily bump.GCC Administrator1-1/+1
From-SVN: r158628
2010-04-21timevar.def (TV_WHOPR_WPA_FIXUP): Remove.Jan Hubicka9-318/+26
* timevar.def (TV_WHOPR_WPA_FIXUP): Remove. * lto-section-in.c (lto_section_name): Remove wpa_fixup. * lto-wpa-fixup.c: Remove. * Makefile.in (lto-wpa-fixup.o): Remove. * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup. (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA. * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section. * lto.c (lto_fixup_tree): Do not call wpa fixup. (materialize_cgraph): Likewise. From-SVN: r158622
2010-04-21re PR fortran/43836 (ice with -fexceptions and -fopenmp)Jakub Jelinek4-1/+23
PR fortran/43836 * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on the decl. * gfortran.dg/gomp/pr43836.f90: New test. From-SVN: r158619
2010-04-21tree-pass.h (ipa_opt_pass_d): Rename function_read_summary...Jan Hubicka12-26/+191
* tree-pass.h (ipa_opt_pass_d): Rename function_read_summary; add write_optimization_summary, read_optimization_summary. (ipa_write_summaries_of_cgraph_node_set): Remove. (ipa_write_optimization_summaries): Declare. (ipa_read_optimization_summaries): Declare. * ipa-cp.c (pass_ipa_cp): Update. * ipa-reference.c (pass_ipa_reference): Update. * ipa-pure-const.c (pass_ipa_pure_const): Update. * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish): Update. * ipa-inline.c (pass_ipa_inline): Update. * ipa.c (pass_ipa_whole_program): Update. * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update. * passes.c (ipa_write_summaries_1): Do not test wpa. (ipa_write_optimization_summaries_1): New. (ipa_write_optimization_summaries): New. (ipa_read_summaries): Do not test ltrans. (ipa_read_optimization_summaries_1): New. (ipa_read_optimization_summaries): New. * lto.c (lto_wpa_write_files): Update. (read_cgraph_and_symbols): Be more verbose. (materialize_cgraph): Likewise. (do_whole_program_analysis): Likewise. From-SVN: r158616
2010-04-21lto-cgraph.c (lto_output_node): Do not output comdat groups for boundary nodes.Jan Hubicka2-23/+7
* lto-cgraph.c (lto_output_node): Do not output comdat groups for boundary nodes. (output_cgraph): Do not arrange comdat groups for boundary nodes. From-SVN: r158615
2010-04-21re PR debug/40040 (gfortran invalid DW_AT_location for overridable variables)Jakub Jelinek2-2/+7
PR debug/40040 * dwarf2out.c (add_name_and_src_coords_attributes): Add DW_AT_{,MIPS_}linkage_name even for Fortran decls. From-SVN: r158612
2010-04-21* ipa-prop.c (ipa_edge_removal_hook): Check for bounds.Jan Hubicka2-0/+8
From-SVN: r158610
2010-04-21lto.c (globalize_cross_file_statics): When function has address taken, it ↵Jan Hubicka4-1/+18
needs to be public. * lto.c (globalize_cross_file_statics): When function has address taken, it needs to be public. * varpool.c (decide_is_variable_needed): Variable is always needed during ltrans. From-SVN: r158609
2010-04-21* opts.c (decode_options): Enable pure-const pass for whopr.Jan Hubicka2-1/+4
From-SVN: r158608
2010-04-21cgraph.c (dump_cgraph_node): Dump also assembler name.Jan Hubicka3-6/+19
* cgraph.c (dump_cgraph_node): Dump also assembler name. * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice at WPA dumping. (cgraph_decide_inlining): Do not expect callee to be removed in all cases. From-SVN: r158607
2010-04-21Add missing comma.Eric B. Weddington2-1/+5
From-SVN: r158604
2010-04-21i386.md (x86_shrd): Add athlon_decode and amdfam10_decode attributes.Uros Bizjak2-1/+8
* config/i386/i386.md (x86_shrd): Add athlon_decode and amdfam10_decode attributes. From-SVN: r158596