aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2014-11-25enum6.C: Use arm_eabi for dg-options.Andreas Tobler4-12/+13
2014-11-26 Andreas Tobler <andreast@gcc.gnu.org> * g++.old-deja/g++.jason/enum6.C: Use arm_eabi for dg-options. Update comment. * g++.old-deja/g++.law/enum9.C: Likewise. * g++.old-deja/g++.other/enum4.C: Likewise. From-SVN: r218065
2014-11-25ira-lives.c (process_bb_node_lives): Make code with conditional ↵Vladimir Makarov2-4/+12
REAL_PIC_OFFSET_TABLE_REGNUM. 2014-11-25 Vladimir Makarov <vmakarov@redhat.com> * ira-lives.c (process_bb_node_lives): Make code with conditional REAL_PIC_OFFSET_TABLE_REGNUM. From-SVN: r218063
2014-11-25Add a testcase for PR target/63534H.J. Lu2-0/+20
PR target/63534 * gcc.target/i386/pr63534.c: New test. From-SVN: r218062
2014-11-25Add a test for PR target/63527H.J. Lu2-0/+30
PR target/63527 * gcc.target/i386/pr63527.c: New test. From-SVN: r218061
2014-11-25re PR target/63527 (-fPIC uses 2 registers for GOT)Vladimir Makarov2-4/+37
2014-11-25 Vladimir Makarov <vmakarov@redhat.com> PR target/63527 * ira-lives.c (process_bb_node_lives): Check and remove conflict of pic pseudo with pic hard reg. From-SVN: r218059
2014-11-25re PR bootstrap/63703 (Bootstrap broken on powerpc-apple-darwin, cc1: ↵Rohit Arul Raj2-1/+11
internal compiler error: in init_reg_sets) PR bootstrap/63703 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly added GCC hard register numbers for SPE high registers. From-SVN: r218058
2014-11-25bt-load.c (migrate_btr_defs): Get the key of a heap entry before removing ↵Segher Boessenkool2-1/+6
it, not after. * bt-load.c (migrate_btr_defs): Get the key of a heap entry before removing it, not after. From-SVN: r218056
2014-11-25mn10300.c (mn10300_insert_setlb_lcc): Remove PATTERN call.Segher Boessenkool2-1/+6
* config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove PATTERN call. From-SVN: r218054
2014-11-25sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead of addic.Segher Boessenkool2-1/+6
* config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead of addic. From-SVN: r218053
2014-11-25rs6000.md (iorxor, IORXOR): Delete code_attrs.Segher Boessenkool2-6/+9
* config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs. (rest of file): Replace those with code resp. CODE. From-SVN: r218052
2014-11-25Add verify_seseTom de Vries3-0/+65
2014-11-25 Tom de Vries <tom@codesourcery.com> * tree-cfg.c (verify_sese): New function. (move_sese_region_to_fn): Call verify_sese. * tree-cfg.h (verify_sese): Declare. From-SVN: r218051
2014-11-25re PR middle-end/64065 (CP2K miscompilation at -O3 -flto)Richard Biener3-0/+9
2014-11-25 Richard Biener <rguenther@suse.de> PR lto/64065 * lto-streamer-out.c (output_struct_function_base): Stream last_clique field. * lto-streamer-in.c (input_struct_function_base): Likewise. From-SVN: r218049
2014-11-25re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in ↵Martin Liska7-7/+225
inline_small_functions, at ipa-inline.c:1709) 2014-11-25 Martin Liska <mliska@suse.cz> PR bootstrap/64050 PR ipa/64060 * sreal.c (sreal::operator+): Addition fixed. (sreal::signedless_plus): Negative numbers are handled correctly. (sreal::operator-): Subtraction is fixed. (sreal::signedless_minus): Negative numbers are handled correctly. * sreal.h (sreal::operator<): Equal negative numbers are compared correctly. (sreal::shift): New checking asserts are introduced. Operation is fixed. * gcc.dg/plugin/plugin.exp: New plugin. * gcc.dg/plugin/sreal-test-1.c: New test. * gcc.dg/plugin/sreal_plugin.c: New test. From-SVN: r218048
2014-11-25MIPS: Testsuite fixes for soft-float configurationsMatthew Fortune3-1/+17
gcc/testuite/ * gcc.target/mips/mips.exp: Add support for -msoft-float and -mhard-float options. Ensure that explicit -mfp* options imply both -mhard-float and -mdouble-float. * gcc.target/mips/call-clobbered-1.c: Add -mhard-float to the compile options. From-SVN: r218047
2014-11-25re PR middle-end/61927 (Wrong results with loop vectorization of: "var[i] = ↵Richard Biener2-7/+13
ABS_EXPR<var2[i]> > 9.9e-7") 2014-11-25 Richard Biener <rguenther@suse.de> PR tree-optimization/61927 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering of group and pattern analysis to the one in GCC 4.8. From-SVN: r218046
2014-11-25* pt.c (lookup_template_variable): Always unknown_type_node.Jason Merrill3-9/+17
From-SVN: r218045
2014-11-25Remove unnecessary calls to strchr.Ilya Tocar3-12/+21
gcc/ * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr, strlen, strncpy. * lto-wrapper.c (append_offload_options): Likewise. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r218044
2014-11-25re PR c++/63786 (crash on argument pack in switch case)Paolo Carlini4-2/+37
/cp 2014-11-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63786 * parser.c (cp_parser_label_for_labeled_statement): Check the case with check_for_bare_parameter_packs. /testsuite 2014-11-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63786 * g++.dg/cpp0x/variadic163.C: New. From-SVN: r218043
2014-11-25re PR target/64056 (gcc.target/i386/chkp-strlen-4.c etc. FAIL)Ilya Enkovich6-0/+14
PR target/64056 * gcc.target/i386/chkp-strlen-4.c: Add mempcpy target check. * gcc.target/i386/chkp-stropt-4.c: Likewise. * gcc.target/i386/chkp-stropt-8.c: Likewise. * gcc.target/i386/chkp-stropt-12.c: Likewise. * gcc.target/i386/chkp-stropt-16.c: Likewise. From-SVN: r218041
2014-11-25rs6000.c (rs6000_call_aix): For the AIX ABI, do not load the static chain if ↵Eric Botcazou4-2/+48
the call was originally direct. * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not load the static chain if the call was originally direct. From-SVN: r218040
2014-11-25re PR c/63877 (- -Wmissing-declarations produces false alarms for C99 inline ↵Marek Polacek4-1/+18
functions) PR c/63877 * c-decl.c (start_function): Disable -Wmissing-declarations warning for inline functions. * gcc.dg/pr63877.c: New test. From-SVN: r218039
2014-11-25re PR ipa/64059 (ICE: Segmentation fault in ipa-polymorphic-call.c:1593)Markus Trippelsdorf4-1/+68
Fix PR64059 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when devirtualization is disabled. From-SVN: r218038
2014-11-25Daily bump.GCC Administrator1-1/+1
From-SVN: r218036
2014-11-25re PR fortran/63938 (OpenMP atomic update does not protect access to ↵Jakub Jelinek2-0/+18
automatic array) PR fortran/63938 * trans-openmp.c (gfc_trans_omp_atomic): Make sure lhsaddr is simple enough for goa_lhs_expr_p. * libgomp.fortran/pr63938-1.f90: New test. * libgomp.fortran/pr63938-2.f90: New test. From-SVN: r218031
2014-11-24re PR target/63847 (FAIL: c-c++-common/cilk-plus/AN/builtin_fn_custom.c ↵Uros Bizjak3-1/+10
execution test on i?86 with -fpic) PR target/63847 * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store for 32bit x86 targets. * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto. From-SVN: r218030
2014-11-24coarray_collectives_3.f90: Add dg-excess-errors.Tobias Burnus4-2/+11
2014-11-24 Tobias Burnus <burnus@net-b.de> * gfortran.dg/coarray_collectives_3.f90: Add dg-excess-errors. * gfortran.dg/dollar_sym_1.f90: Ditto. * gfortran.dg/dollar_sym_3.f: Ditto. From-SVN: r218029
2014-11-24re PR target/63965 (ICE: in extract_constrain_insn, at recog.c:2230 on ppc64)Michael Meissner3-4/+28
2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/63965 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set Altivec & -16 mask if the type is not valid for Altivec registers. (rs6000_secondary_reload_memory): Add support for ((reg + const) + reg) that occurs during push_reload processing. * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction alternative for moving constant vectors which are easy altivec constants to GPRs. Set the length attribute each of the alternatives. From-SVN: r218028
2014-11-24re PR target/63965 (ICE: in extract_constrain_insn, at recog.c:2230 on ppc64)Michael Meissner3-5/+19
2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/63965 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a work in progress patch was committed instead of the fixes for 63965. * config/rs6000/rs6000.c: Likewise. From-SVN: r218027
2014-11-24compiler: Do not dereference a named pointer type when looking up a method.Ian Lance Taylor1-0/+12
Fixes Issue 9018. From-SVN: r218026
2014-11-24re PR ipa/63671 (21% tramp3d-v4 performance hit due to -fdevirtualize)Jan Hubicka2-7/+27
PR ipa/63671 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises and -fno-devirtualize more carefully. (can_remove_node_now_p): Update. From-SVN: r218024
2014-11-24re PR middle-end/63972 (shrink_wrap_symbol_ref_1.c fail with -mabi=ilp32 on ↵Andrew Pinski2-0/+6
aarch64) 2014-11-24 Andrew Pinski <apinski@cavium.com> PR rtl-opt/63972 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also. From-SVN: r218023
2014-11-24[AArch64]Add vec_shr pattern for 64-bit vectors using ush{l,r}; enable tests.Alan Lawrence4-0/+25
gcc/: * config/aarch64/aarch64-simd.md (vec_shr<mode>): New. gcc/testsuite/: * lib/target-supports.exp (check_effective_target_whole_vector_shift): Add aarch64{,_be}. From-SVN: r218022
2014-11-24[AArch64]Tidy up aarch64_simd_expand_argsAlan Lawrence2-74/+57
* config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Refactor by combining switch statements and make arrays into scalars. From-SVN: r218021
2014-11-24re PR c++/58561 ([c++11] ICE using declaration of function with auto in ↵David Edelsohn2-0/+18
return type) PR c++/58561 * dbxout.c: Include stringpool.h (dbxout_type) [default]: Ignore auto type. From-SVN: r218020
2014-11-24re PR target/63679 ([AArch64] Failure to constant fold.)Richard Biener10-30/+159
2014-11-24 Richard Biener <rguenther@suse.de> PR tree-optimization/63679 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h. (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case to properly leave off at -1. (fully_constant_vn_reference_p): Generalize folding from constant initializers. (vn_reference_lookup_3): When looking through aggregate copies handle offsetted reads and try simplifying the result to a constant. * gimple-fold.h (fold_ctor_reference): Export. * gimple-fold.c (fold_ctor_reference): Likewise. * gcc.dg/tree-ssa/ssa-fre-42.c: New testcase. * gcc.dg/tree-ssa/20030807-5.c: Avoid folding read from global to zero. * gcc.target/i386/ssetype-1.c: Likewise. * gcc.target/i386/ssetype-3.c: Likewise. * gcc.target/i386/ssetype-5.c: Likewise. From-SVN: r218019
2014-11-24re PR java/64044 (Java emits bogus .class$ decls)Richard Biener2-1/+5
2014-11-24 Richard Biener <rguenther@suse.de> PR java/64004 * class.c (build_classdollar_field): Do not set TREE_READONLY. From-SVN: r218018
2014-11-24re PR c++/63203 (Self-initialization of reference not diagnosed if it occurs ↵Jonathan Wakely4-3/+38
within a loop) /cp 2014-11-24 Jonathan Wakely <jwakely@redhat.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/63203 * decl.c (initialize_local_var): Add -Winit-self warning for references initialized with themselves. /testsuite 2014-11-24 Jonathan Wakely <jwakely@redhat.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/63203 * g++.dg/warn/Winit-self-2.C: New. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r218017
2014-11-24re PR c++/63942 (constexpr conflicts with previous declaration)Jason Merrill2-5/+13
PR c++/63942 * mangle.c (mangle_decl): If we aren't going to create a symbol alias, don't build the alias DECL either. From-SVN: r218016
2014-11-24simplify-rtx.c (simplify_ternary_operation): Simplify vec_merge ↵Petr Murzin4-0/+59
(vec_duplicate (vec_select)). 2014-11-24 Petr Murzin <petr.murzin@intel.com> gcc/ * simplify-rtx.c (simplify_ternary_operation): Simplify vec_merge (vec_duplicate (vec_select)). gcc/testsuite/ * gcc.target/i386/extract-insert-combining.c: New test. From-SVN: r218015
2014-11-24[AArch64][4/5] Implement fusion of ARDP+LDRKyrylo Tkachov2-1/+40
* config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define. (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops. (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR. From-SVN: r218014
2014-11-24[AArch64][3/5] Implement fusion of MOVK+MOVKKyrylo Tkachov2-2/+40
* config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define. (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops. (cortexa57_tunings): Likewise. (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK. From-SVN: r218013
2014-11-24[sched-deps] Remove needless check for modified_in_p when trying to fuse two ↵Kyrylo Tkachov6-12/+71
non-conditional jump insns * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p in the not conditional jump case. * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description. * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description. * gcc.target/aarch64/fuse_adrp_add_1.c: New test. From-SVN: r218012
2014-11-24re PR testsuite/64039 (FAIL: gcc.dg/tree-ssa/ssa-dom-cse-2.c scan-tree-dump ↵Richard Biener2-1/+9
optimized "return 28;") 2014-11-24 Richard Biener <rguenther@suse.de> PR testsuite/64039 * gcc.dg/tree-ssa/ssa-dom-cse-2.c: XFAIL for hppa*-*-*. From-SVN: r218011
2014-11-24[AArch64][2/5] Implement adrp+add fusionKyrylo Tkachov2-2/+38
* config/aarch64/aarch64.c: Include tm-constrs.h (AARCH64_FUSE_ADRP_ADD): Define. (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops. (cortexa53_tunings): Likewise. (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD. From-SVN: r218010
2014-11-24[PATCH 2/2] ipa-inline uses sreal for as fibonacci_heap templateMartin Liska2-24/+32
* ipa-inline.c (edge_badness): long is replaced by sreal as fibonacci_heap template type. (update_edge_key): Likewise. (inline_small_functions): Likewise. From-SVN: r218009
2014-11-24[PATCH 1/2] Negative numbers added for sreal class.Martin Liska4-52/+190
* predict.c (propagate_freq): More elegant sreal API is used. (estimate_bb_frequencies): Precomputed constants replaced by integer constants. * sreal.c (sreal::normalize): New function. (sreal::to_int): Likewise. (sreal::operator+): Likewise. (sreal::operator-): Likewise. (sreal::signedless_plus): Likewise. (sreal::signedless_minus): Likewise. (sreal::operator/): Negative number support is added. * sreal.h: Definition of new functions added. (inline sreal operator<<): New function. (inline sreal operator>>): Likewise. From-SVN: r218008
2014-11-24[AArch64][1/5] Implement TARGET_SCHED_MACRO_FUSION_PAIR_PKyrylo Tkachov3-4/+86
* config/aarch64/aarch64-protos.h (struct tune_params): Add fuseable_ops field. * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops. (cortexa53_tunings): Likewise. (cortexa57_tunings): Likewise. (thunderx_tunings): Likewise. (aarch64_macro_fusion_p): New function. (aarch_macro_fusion_pair_p): Likewise. (TARGET_SCHED_MACRO_FUSION_P): Define. (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise. (AARCH64_FUSE_MOV_MOVK): Likewise. (AARCH64_FUSE_NOTHING): Likewise. From-SVN: r218007
2014-11-24re PR lto/63968 (175.vpr from cpu2000 fails to build with LTO)Martin Liska3-19/+57
PR lto/63968 * bb-reorder.c (find_traces_1_round): decreate_key is replaced with replace_key method. * fibonacci_heap.h (fibonacci_heap::insert): New argument. (fibonacci_heap::replace_key_data): Likewise. (fibonacci_heap::replace_key): New method that can even increment key, this operation costs O(log N). (fibonacci_heap::extract_min): New argument. (fibonacci_heap::delete_node): Likewise. From-SVN: r218006
2014-11-24re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization))Richard Biener1-1/+202
2014-11-24 Richard Biener <rguenther@suse.de> PR tree-optimization/55334 * function.h (struct function): Add last_clique member. * tree-inline.c (remap_dependence_clique): New function. (remap_gimple_op_r): Remap dependence cliques in MEM_REFs. (copy_tree_body_r): Likewise. (copy_cfg_body): Free dependence map. (copy_gimple_seq_and_replace_locals): Likewise. * tree-pretty-print.c (dump_generic_node): Dump dependence info. * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info to answer alias query. * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h, tree-pretty-print.h and gimple-walk.h. (struct variable_info): Add is_restrict_var flag and ruid member. (new_var_info): Initialize is_restrict_var. (make_constraint_from_restrict): Likewise. (create_variable_info_for): Exclude restricts from global vars from new handling. (intra_create_variable_infos): But not those from parameters. (visit_loadstore): New function. (maybe_set_dependence_info): Likewise. (compute_dependence_clique): Likewise. (compute_may_aliases): Call compute_dependence_clique. * tree-data-ref.c (dr_analyze_indices): Copy dependence info to fake MEM_REF. (dr_may_alias_p): Use recorded dependence info to answer alias query. * tree-core.h (struct tree_base): Add clique, base struct in union. * tree.h (MR_DEPENDENCE_CLIQUE): New macro. (MR_DEPENDENCE_BASE): Likewise. * tree-inline.h (dependence_hasher): New hash-map kind. (struct copy_body_data): Add dependence_map pointer. * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid throwing away dependence info. * tree-streamer-in.c (unpack_value_fields): Stream dependence info. * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise. * gcc.dg/tree-ssa/restrict-5.c: New testcase. From-SVN: r218005
2014-11-24re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization))Richard Biener14-5/+226
2014-11-24 Richard Biener <rguenther@suse.de> PR tree-optimization/55334 * function.h (struct function): Add last_clique member. * tree-inline.c (remap_dependence_clique): New function. (remap_gimple_op_r): Remap dependence cliques in MEM_REFs. (copy_tree_body_r): Likewise. (copy_cfg_body): Free dependence map. (copy_gimple_seq_and_replace_locals): Likewise. * tree-pretty-print.c (dump_generic_node): Dump dependence info. * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info to answer alias query. * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h, tree-pretty-print.h and gimple-walk.h. (struct variable_info): Add is_restrict_var flag and ruid member. (new_var_info): Initialize is_restrict_var. (make_constraint_from_restrict): Likewise. (create_variable_info_for): Exclude restricts from global vars from new handling. (intra_create_variable_infos): But not those from parameters. (visit_loadstore): New function. (maybe_set_dependence_info): Likewise. (compute_dependence_clique): Likewise. (compute_may_aliases): Call compute_dependence_clique. * tree-data-ref.c (dr_analyze_indices): Copy dependence info to fake MEM_REF. (dr_may_alias_p): Use recorded dependence info to answer alias query. * tree-core.h (struct tree_base): Add clique, base struct in union. * tree.h (MR_DEPENDENCE_CLIQUE): New macro. (MR_DEPENDENCE_BASE): Likewise. * tree-inline.h (dependence_hasher): New hash-map kind. (struct copy_body_data): Add dependence_map pointer. * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid throwing away dependence info. * tree-streamer-in.c (unpack_value_fields): Stream dependence info. * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise. * gcc.dg/tree-ssa/restrict-5.c: New testcase. From-SVN: r218004