aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2013-12-09Rename last_basic_block_for_function to last_basic_block_for_fn.David Malcolm7-8/+21
gcc/ * basic-block.h (last_basic_block_for_function): Rename to... (last_basic_block_for_fn): ...this. * ipa-utils.c (ipa_merge_profiles): Update for renaming of last_basic_block_for_function to last_basic_block_for_fn. * lto-streamer-in.c (input_cfg): Likewise. * lto-streamer-out.c (output_cfg): Likewise. * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise. * tree-sra.c (propagate_dereference_distances, ipa_early_sra): Likewise. From-SVN: r205817
2013-12-09Rename macros (basic_block_info_for_function, BASIC_BLOCK_FOR_FUNCTION,David Malcolm6-23/+40
SET_BASIC_BLOCK_FOR_FUNCTION) gcc/ * basic-block.h (basic_block_info_for_function): Rename to... (basic_block_info_for_fn): ...this. (BASIC_BLOCK_FOR_FUNCTION): Rename to... (BASIC_BLOCK_FOR_FN): ...this. (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to... (SET_BASIC_BLOCK_FOR_FN): ...this. * gimple-streamer-in.c (input_phi, input_bb): Update for renaming of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN. * ipa-utils.c (ipa_merge_profiles): Likewise. * lto-streamer-in.c (make_new_block): Update for renaming of SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN. (input_cfg): Update for renamings. * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise. (dump_function_to_file): Update for renaming of basic_block_info_for_function to basic_block_info_for_fn. From-SVN: r205816
2013-12-09re PR middle-end/38474 (compile time explosion in ↵Richard Biener2-17/+13
dataflow_set_preserve_mem_locs at -O3) 2013-12-09 Richard Biener <rguenther@suse.de> PR middle-end/38474 * tree-ssa-structalias.c (set_union_with_increment): Remove unreachable code. (do_complex_constraint): Call set_union_with_increment with the solution delta, not the full solution. (make_transitive_closure_constraints): Merge the two constraints. From-SVN: r205808
2013-12-09re PR rtl-optimization/54300 (regcprop incorrectly looks through parallel ↵Richard Earnshaw4-13/+48
register swap operation) PR rtl-optimization/54300 gcc/ PR rtl-optimization/54300 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused outputs in a single-set are killed from the value chains. gcc/testsuite: PR rtl-optimization/54300 * gcc.target/arm/pr54300.C: New test. From-SVN: r205807
2013-12-09pr39834.c: Remove optimization level option.Martin Jambor6-5/+13
2013-12-09 Martin Jambor <mjambor@suse.cz> * gcc.c-torture/compile/pr39834.c: Remove optimization level option. * gcc.c-torture/compile/pr48929.c: Likewise. * gcc.c-torture/compile/pr55569.c: Likewise. * gcc.c-torture/compile/sra-1.c: Likewise. * gcc.c-torture/compile/pr45085.c: Moved to... * gcc.dg/tree-ssa/pr45085.c: ...here, added compile dg-do. From-SVN: r205806
2013-12-09re PR sanitizer/59415 (ICE segfault in verify_bb_vtables for g++ -S ↵Marek Polacek4-2/+21
-fvtable-verify=std -fsanitize=null) PR sanitizer/59415 * vtable-verify.c (verify_bb_vtables): Check the return value of gimple_call_fn. Use is_gimple_call instead of gimple_code. testsuite/ * g++.dg/ubsan/pr59415.C: New test. From-SVN: r205805
2013-12-09arm.md (generic_sched): Add cortexa12.Kyrylo Tkachov8-6/+141
2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/arm/arm.md (generic_sched): Add cortexa12. (generic_vfp): Likewise. * config/arm/arm.c (cortexa12_extra_costs): New cost table. (arm_cortex_a12_tune): New tuning struct. * config/arm/arm-cores.def: Add cortex-a12. * config/arm/arm-tables.opt: Regenerate. * config/arm/arm-tune.md: Likewise. * config/arm/bpabi.h: Add cortex-a12. * doc/invoke.texi: Document -mcpu=cortex-a12. From-SVN: r205804
2013-12-09install.texi (Prerequisites): Explicitly mention C library and its headers ↵Francois-Xavier Coudert2-0/+21
for multilib builds. * doc/install.texi (Prerequisites): Explicitly mention C library and its headers for multilib builds. From-SVN: r205802
2013-12-09re PR c++/52707 ([C++11] Deleted special member function prevent type being ↵Paolo Carlini2-0/+14
an aggregate) 2013-12-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52707 * g++.dg/cpp0x/deleted2.C: New. From-SVN: r205801
2013-12-09loop-31.c: Update scan pattern.Kyrylo Tkachov2-3/+7
2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * gcc.dg/tree-ssa/loop-31.c: Update scan pattern. From-SVN: r205800
2013-12-09asan-dg.exp (asan-gtest): Remove expected output from the pass/fail line and ↵Richard Sandiford2-2/+8
add it to the log instead. gcc/testsuite/ * lib/asan-dg.exp (asan-gtest): Remove expected output from the pass/fail line and add it to the log instead. From-SVN: r205799
2013-12-09Daily bump.GCC Administrator1-1/+1
From-SVN: r205798
2013-12-08re PR target/52898 (SH Target: Inefficient DImode comparisons)Oleg Endo7-13/+47
PR target/52898 PR target/51697 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove OPT_mcbranchdi entry. * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and emit a warning. * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4 and TARGET_CMPEQDI_T variables. * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi. PR target/52898 PR target/51697 * gcc.target/sh/pr51697.c: New. From-SVN: r205794
2013-12-08macro-fusion-1.c: Cleanup sched2 rtl dump.Uros Bizjak5-2/+17
* gcc.dg/macro-fusion-1.c: Cleanup sched2 rtl dump. * gcc.dg/macro-fusion-2.c: Ditto. * gcc.dg/vect/vect-simd-clone-10a.c: Cleanup vect tree dump. * gcc.dg/vect/vect-simd-clone-12a.c: Ditto. From-SVN: r205792
2013-12-08re PR fortran/58099 ([F03] over-zealous procedure-pointer error checking)Tobias Burnus11-17/+141
2013-12-08 Tobias Burnus <burnus@net-b.de> Janus Weil <janus@gcc.gnu.org> PR fortran/58099 PR fortran/58676 PR fortran/41724 * resolve.c (gfc_resolve_intrinsic): Set elemental/pure. (resolve_fl_procedure): Reject pure dummy procedures/procedure pointers. (gfc_explicit_interface_required): Don't require a match of ELEMENTAL for intrinsics. 2013-12-08 Tobias Burnus <burnus@net-b.de> PR fortran/58099 PR fortran/58676 PR fortran/41724 * gfortran.dg/elemental_subroutine_8.f90: New. * gfortran.dg/proc_decl_9.f90: Add ELEMENTAL to make valid. * gfortran.dg/proc_ptr_11.f90: Ditto. * gfortran.dg/proc_ptr_result_8.f90: Ditto. * gfortran.dg/proc_ptr_32.f90: Update dg-error. * gfortran.dg/proc_ptr_33.f90: Ditto. * gfortran.dg/proc_ptr_result_1.f90: Add abstract interface which is not elemental. * gfortran.dg/proc_ptr_result_7.f90: Ditto. Co-Authored-By: Janus Weil <janus@gcc.gnu.org> From-SVN: r205791
2013-12-08Daily bump.GCC Administrator1-1/+1
From-SVN: r205788
2013-12-07re PR fortran/59414 ([OOP] ICE in in gfc_conv_expr_descriptor on ALLOCATE ↵Janus Weil4-1/+34
inside SELECT TYPE) 2013-12-07 Janus Weil <janus@gcc.gnu.org> PR fortran/59414 * resolve.c (resolve_specific_f0): Handle CLASS-valued functions. 2013-12-07 Janus Weil <janus@gcc.gnu.org> PR fortran/59414 * gfortran.dg/class_result_2.f90: New. From-SVN: r205785
2013-12-07* config/linux.h: Fix typo in a comment.Maxim Kuvyrkov2-2/+7
From-SVN: r205782
2013-12-07Cleanup libc selection and Android support.Maxim Kuvyrkov2-16/+21
* config.gcc (*linux*): Split libc selection from Android support. Add libc selection to all *linux* targets. Add Android support to architectures that support it. (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,) (mips*-*-linux*): Add Android support. From-SVN: r205781
2013-12-07Cleanup definitions of libc-related target hooks.Maxim Kuvyrkov8-17/+45
* config/bfin/uclinux.h, config/c6x/uclinux-elf.h, * config/lm32/uclinux-elf.h, config/m68k/uclinux.h, * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions to linux.h. * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition to linux.h. * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P): Define appropriately for Linux and uClinux targets. From-SVN: r205780
2013-12-07Robustify check for IFUNC support.Maxim Kuvyrkov2-1/+5
* config/linux.c (linux_has_ifunc_p): Use correct test. From-SVN: r205779
2013-12-07Rename functions relating to libc support on Linux targets.Maxim Kuvyrkov8-9/+19
* config/linux.c (linux_android_has_ifunc_p): Rename to linux_has_ifunc_p. (linux_android_libc_has_function): Rename to linux_libc_has_function. * config/linux-protos.h (linux_android_has_ifunc_p,) (linux_android_libc_has_function): Update declarations. * config/linux.h, config/linux-android.h, config/alpha/linux.h, * config/rs6000/linux.h, config/rs6000/linux64.h: Update. From-SVN: r205778
2013-12-07Rename files for libc selection on Linux targets.Maxim Kuvyrkov4-6/+13
* linux-android.c: Rename to linux.c. * t-linux-android: Rename to t-linux. Update references to linux-android.c * config.gcc: Update references to t-linux-android and linux-android.o. From-SVN: r205777
2013-12-07rs6000.md (bswapdi2_32bit): Remove ?? from r->r alternative.Alan Modra2-1/+6
* config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r alternative. From-SVN: r205773
2013-12-07config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.Ralf Corsepius2-0/+12
2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org> * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT. From-SVN: r205771
2013-12-07Daily bump.GCC Administrator1-1/+1
From-SVN: r205770
2013-12-06rs600.md (*bswapdi2_64bit): Remove ?? from the constraint.Vladimir Makarov2-1/+6
2013-12-06 Vladimir Makarov <vmakarov@redhat.com> * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the constraint. From-SVN: r205765
2013-12-06Fix two small problems...Caroline Tice4-24/+28
Fix two small problems: Make the libvtv function decls globally visible, and update all uses of the verified vtable poitner with the verification results, rather than just hte first use. From-SVN: r205764
2013-12-06re PR target/59092 (__builtin_trap calls abort for aarch64-linux-gnu)Andrew Pinski2-0/+11
2013-12-06 Andrew Pinski <apinski@cavium.com> PR target/59092 * config/aarch64/aarch64.md (trap): New pattern. From-SVN: r205763
2013-12-06re PR tree-optimization/59388 (ICE on valid code at -O1 and above on ↵Jakub Jelinek4-3/+33
x86_64-linux-gnu) PR tree-optimization/59388 * tree-ssa-reassoc.c (update_range_test): If op == range->exp, gimplify tem after stmt rather than before it. * gcc.c-torture/execute/pr59388.c: New test. From-SVN: r205761
2013-12-06tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.Jakub Jelinek2-20/+28
* tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref. (get_references_in_stmt): Don't record operand addresses, but operands themselves. (find_data_references_in_stmt, graphite_find_data_references_in_stmt): Adjust for the pos -> ref change. From-SVN: r205760
2013-12-06re PR testsuite/59043 (FAIL: (gcc|++).dg/pubtypes* scan-assembler ↵Dominique d'Humieres6-5/+14
long.*Length of Public Type Names Info) 2013-12-06 Dominique d'Humieres <dominiq@lps.ens.fr> PR testsuite/59043 * g++.dg/pubtypes.C: Adjust the regular expression. * gcc.dg/pubtypes-1.c: Likewise. * gcc.dg/pubtypes-2.c: Likewise. * gcc.dg/pubtypes-3.c: Likewise. * gcc.dg/pubtypes-4.c: Likewise. From-SVN: r205758
2013-12-06Fix dg options to vect-nop-move.c.Tejas Belagod2-1/+6
2013-12-06 Tejas Belagod <tejas.belagod@arm.com> testsuite/ * gcc.dg/vect/vect-nop-move.c: Fix dg options. From-SVN: r205755
2013-12-06Change -mtune=ia to -mtune=intelH.J. Lu5-15/+27
* config.gcc: Change --with-cpu=ia to --with-cpu=intel. * config/i386/i386.c (cpu_names): Replace "ia" with "intel". (processor_alias_table): Likewise. (ix86_option_override_internal): Likewise. * config/i386/i386.h (target_cpu_default): Replace TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel. * doc/invoke.texi: Replace -mtune=ia with -mtune=intel. From-SVN: r205754
2013-12-06re PR target/59405 (Incorrect FP<->MMX transition during call/ret)Uros Bizjak4-43/+82
PR target/59405 * config/i386/i386.c (type_natural_mode): Properly handle size 8 for !TARGET_64BIT. testsuite/ChangeLog: PR target/59405 * gcc.target/i386/pr59405.c: New test. From-SVN: r205753
2013-12-06remove an unneeded vec.release () to unbreak lto bootstrapTrevor Saunders2-1/+4
From-SVN: r205750
2013-12-06[ARM] Add __builtin_trap support for A32Ian Bolton6-0/+54
Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r205749
2013-12-06expr.c (expand_assignment): Update bitregion_start and bitregion_end.Bernd Edlinger2-0/+8
2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de> * expr.c (expand_assignment): Update bitregion_start and bitregion_end. From-SVN: r205745
2013-12-06re PR target/59316 (gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC)Eric Botcazou8-229/+581
PR target/59316 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define. * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine. * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around. (TARGET_BUILTIN_DECL): Define. (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise. (sparc32_initialize_trampoline): Adjust call to gen_flush. (enum sparc_builtins): New enumeral type. (sparc_builtins): New static array. (sparc_builtins_icode): Likewise. (def_builtin): Accept a separate icode and save the result. (def_builtin_const): Likewise. (sparc_fpu_init_builtins): New function. (sparc_vis_init_builtins): Pass the builtin code. (sparc_init_builtins): Call it if TARGET_FPU. (sparc_builtin_decl): New function. (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR. (sparc_handle_vis_mul8x16): Use the builtin code. (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR and SPARC_BUILTIN_PDISTN. (compound_expr): New helper function. (sparc_atomic_assign_expand_fenv): New function. * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR and UNSPECV_STFSR. (flush, flushdi): Merge into single pattern. (ldfsr): New instruction. (stfsr): Likewise. From-SVN: r205735
2013-12-06asan.c: Remove struct tags when referring to class varpool_node.Oleg Endo33-155/+195
* asan.c: Remove struct tags when referring to class varpool_node. * cgraph.h: Likewise. * cgraphbuild.c: Likewise. * cgraphunit.c: Likewise. * dbxout.c: Likewise. * dwarf2out.c: Likewise. * gimple-fold.c: Likewise. * ipa-devirt.c: Likewise. * ipa-ref-inline.h: Likewise. * ipa-ref.h: Likewise. * ipa-reference.c: Likewise. * ipa-utils.c: Likewise. * ipa.c: Likewise. * lto-cgraph.c: Likewise. * lto-streamer-out.c: Likewise. * lto-streamer.h: Likewise. * passes.c: Likewise. * toplev.c: Likewise. * tree-eh.c: Likewise. * tree-emutls.c: Likewise. * tree-pass.h: Likewise. * tree-ssa-structalias.c: Likewise. * tree-vectorizer.c: Likewise. * tree.c: Likewise. * varasm.c: Likewise. * varpool.c: Likewise. * cp/decl2.c: Remove struct tags when referring to class varpool_node. * lto/lto.c: Remove struct tags when referring to class varpool_node. * lto/lto-partition.c: Likewise. * lto/lto-symtab.c: Likewise. From-SVN: r205733
2013-12-06cgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or ↵Oleg Endo7-73/+82
class opt_pass. * cgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or class opt_pass. * function.h: Likewise. * lto-cgraph.c: Likewise. * pass_manager.h: Likewise. * passes.c: Likewise. * tree-pass.h: Likewise. From-SVN: r205732
2013-12-06re PR tree-optimization/59058 (wrong code at -O3 on x86_64-linux-gnu ↵Richard Biener6-30/+89
(affecting gcc 4.6 to trunk)) 2013-12-06 Richard Biener <rguenther@suse.de> PR tree-optimization/59058 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member. (LOOP_VINFO_NITERSM1): New macro. * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express the vector loop entry test in terms of scalar latch executions. (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1. * tree-vect-loop.c (vect_get_loop_niters): Also return the number of latch executions. (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1. (vect_analyze_loop_form): Likewise. (vect_generate_tmps_on_preheader): Compute the number of vectorized iterations differently. * gcc.dg/torture/pr59058.c: New testcase. From-SVN: r205730
2013-12-06score.c (score_force_temporary): Delete function.Jan-Benedict Glaw3-31/+16
2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config/score/score.c (score_force_temporary): Delete function. (score_split_symbol): Ditto. * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra parentheses to silence ambiguity warning and reindent. From-SVN: r205727
2013-12-06Daily bump.GCC Administrator1-1/+1
From-SVN: r205726
2013-12-05pr15774-1.C: Adjust expected message.Paolo Carlini2-2/+6
2013-12-05 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/warn/pr15774-1.C: Adjust expected message. From-SVN: r205722
2013-12-05invoke.texi: Document -fsanitize=signed-integer-overflow.Marek Polacek2-0/+17
2013-12-05 Marek Polacek <polacek@redhat.com> * doc/invoke.texi: Document -fsanitize=signed-integer-overflow. From-SVN: r205721
2013-12-05re PR c++/59044 (Internal compiler error triggers when accessing a typedef ↵Jason Merrill3-22/+44
in a specialized member class) PR c++/59044 PR c++/59052 * pt.c (most_specialized_class): Use the partially instantiated template for deduction. Drop the TMPL parameter. From-SVN: r205720
2013-12-05Add -march=ia to x86 backendH.J. Lu5-8/+48
* config.gcc: Support --with-cpu=ia. * config/i386/i386.c (cpu_names): Add "ia". (processor_alias_table): Likewise. (ix86_option_override_internal): Disallow -march=ia. * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia. * doc/invoke.texi: Document -mtune=ia. From-SVN: r205719
2013-12-05re PR rtl-optimization/59317 ([LRA,MIPS] ICE: in check_rtl, at lra.c (insn ↵Vladimir Makarov4-2/+98
does not satisfy constraints)) 2013-12-05 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/59317 * lra-constraints.c (in_class_p): Don't ignore insn with constant as a source. 2013-12-05 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/59317 * testsuite/gcc.target/mips/pr59317.c: New. From-SVN: r205718
2013-12-05re PR ipa/58253 (IPA-SRA creates calls with different arguments that the ↵Martin Jambor2-1/+15
callee accepts) 2013-12-05 Martin Jambor <mjambor@suse.cz> PR ipa/58253 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of non-BLKmode in their naturally aligned type. From-SVN: r205715