aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-08P0036R0: Unary Folds and Empty Parameter PacksJason Merrill4-18/+11
* pt.c (expand_empty_fold): Remove special cases for *,+,&,|. From-SVN: r234068
2016-03-08re PR sanitizer/70135 (-fsanitize=undefined causes static_assert to fail)Jakub Jelinek5-3/+74
PR c++/70135 * constexpr.c (cxx_eval_loop_expr): Forget saved values of SAVE_EXPRs even after the last iteration of the loop. * g++.dg/cpp1y/constexpr-loop4.C: New test. * g++.dg/ubsan/pr70135.C: New test. From-SVN: r234064
2016-03-08ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling - becuase -> because.Jakub Jelinek12-9/+29
* ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling - becuase -> because. * ipa-reference.c (ignore_module_statics): Likewise. * cgraph.c (cgraph_node::get_body): Likewise. * ipa-inline.c (early_inliner): Likewise. * ipa-devirt.c (types_same_for_odr): Likewise. * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise. * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise. cp/ * decl.c (duplicate_decls): Fix spelling - becuase -> because. lto/ * lto-symtab.h (lto_symtab_prevail_decl): Fix spelling - becuase -> because. From-SVN: r234061
2016-03-08[obvious] Fix typo in tree-ssa-math-opts.cKyrylo Tkachov2-1/+5
* tree-ssa-math-opts.c: Fix typo in comment. From-SVN: r234058
2016-03-08re PR target/70110 (ICE at -O3 in the 32-bit mode in set_last_insn, at ↵Jakub Jelinek4-2/+56
emit-rtl.h:420) PR target/70110 * config/i386/i386.c (scalar_chain::make_vector_copies, scalar_chain::convert_reg): Call end_sequence in between get_insns and emit_conversion_insns rather than after both calls. * gcc.dg/pr70110.c: New test. From-SVN: r234057
2016-03-08* sv.po: Update.Joseph Myers2-5164/+1728
From-SVN: r234056
2016-03-08Daily bump.GCC Administrator1-1/+1
From-SVN: r234055
2016-03-07re PR target/70064 (Wrong code with custom flags and quite big testcase @ i686)Uros Bizjak4-22/+64
PR target/70064 * config/i386/i386.h (machine_function): Add pc_thunk_call_expanded flag. (ix86_pc_thunk_call_expanded): New define. * config/i386/i386.md (set_got, set_got_labelled): New expanders. (*set_got): Rename insn pattern from set_got. (*set_got_labelled): Rename inst pattern from set_got_labelled. * config/i386/i386.c (ix86_compute_frame_layout): Use ix86_pc_thunk_call_expanded to prevent red-zone. From-SVN: r234050
2016-03-07[hsa testsuite] New directory for HSA-specific C testcasesMartin Jambor19-0/+1193
2016-03-07 Martin Jambor <mjambor@suse.cz> * testsuite/lib/libgomp.exp (check_effective_target_hsa_offloading_selected_nocache): New. (check_effective_target_hsa_offloading_selected): Likewise. * testsuite/libgomp.hsa.c/c.exp: Likewise. * testsuite/libgomp.hsa.c/alloca-1.c: Likewise. * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise. * testsuite/libgomp.hsa.c/builtins-1.c: Likewise. * testsuite/libgomp.hsa.c/complex-1.c: Likewise. * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise. * testsuite/libgomp.hsa.c/function-call-1.c: Likewise. * testsuite/libgomp.hsa.c/get-level-1.c: Likewise. * testsuite/libgomp.hsa.c/gridify-1.c: Likewise. * testsuite/libgomp.hsa.c/gridify-2.c: Likewise. * testsuite/libgomp.hsa.c/gridify-3.c: Likewise. * testsuite/libgomp.hsa.c/gridify-4.c: Likewise. * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise. * testsuite/libgomp.hsa.c/pr69568.c: Likewise. * testsuite/libgomp.hsa.c/rotate-1.c: Likewise. * testsuite/libgomp.hsa.c/switch-1.c: Likewise. * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise. From-SVN: r234047
2016-03-07[hsa testsuite] Adjust libgomp tests that do not work on host fallbackMartin Jambor11-10/+24
2016-03-07 Martin Jambor <mjambor@suse.cz> * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on non-shared memory accelerators. * testsuite/libgomp.c/examples-4/device-1.c: Likewise. * testsuite/libgomp.c/examples-4/target-5.c: Likewise. * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise. * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise. * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise. * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise. * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise. * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise. * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise. From-SVN: r234046
2016-03-07[hsa testsuite] Suppress hsa warnings in libgomp testsMartin Jambor2-0/+8
2016-03-07 Martin Jambor <mjambor@suse.cz> * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to ALWAYS_CFLAGS. From-SVN: r234045
2016-03-07[hsa testsuite] Suppress hsa warnings in compiler gomp testsMartin Jambor13-12/+25
2016-03-07 Martin Jambor <mjambor@suse.cz> * c-c++-common/gomp/clauses-1.c: Remove dg-options. * c-c++-common/gomp/if-1.c: Likewise. * c-c++-common/gomp/pr61486-2.c: Likewise. * c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp to dg-additional-options. * g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests. * g++/gomp/target-teams-1.c: Likewise. * gcc.dg/gomp/gomp.exp: Likewise. * gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to dg-additional-options. * gfortran.dg/gomp/gomp.exp: Likewise. * gfortran.dg/gomp/target1.f90: Remove dg-options. * gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to dg-additional-options. * gfortran.dg/gomp/target3.f90: Remove dg-options. From-SVN: r234044
2016-03-07[hsa testsuite] Gridification testsMartin Jambor4-0/+84
2016-03-07 Martin Jambor <mjambor@suse.cz> * lib/target-supports.exp (check_effective_target_offload_hsa): New. * c-c++-common/gomp/gridify-1.c: New test. * gfortran.dg/gomp/gridify-1.f90: Likewise. From-SVN: r234043
2016-03-07[hsa] Consodlidate GTY roots for trees used during expansion to HSAMartin Jambor5-15/+54
2016-03-07 Martin Jambor <mjambor@suse.cz> * hsa.h (hsa_get_ctor_statements): Declare. (hsa_get_dtor_statements): Likewise. (hsa_get_kernel_dispatch_type): Likewise. * hsa.c (hsa_get_ctor_statements): New function. (hsa_get_dtor_statements): Likewise. (hsa_get_kernel_dispatch_type): Likewise. * hsa-brig.c (hsa_cdtor_statements): Removed. (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and hsa_get_dtor_statements. * hsa-gen.c (hsa_kernel_dispatch_type): Removed. (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type. From-SVN: r234042
2016-03-07pr45701-1.c: Change assembler scan to not trigger for cortex-r8, when ↵Andre Vieira3-2/+8
scanning for register r8. 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com> * gcc.target/arm/pr45701-1.c: Change assembler scan to not trigger for cortex-r8, when scanning for register r8. * gcc.target/arm/pr45701-2.c: Likewise. From-SVN: r234041
2016-03-07arm-cores.def (cortex-r8): New.Andre Vieira5-7/+19
2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com> gcc/ * config/arm/arm-cores.def (cortex-r8): New. * config/arm/arm-tables.opt (cortex-r8): Regenerate. * config/arm/arm-tune.md: Likewise. * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values. From-SVN: r234040
2016-03-07PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrementMartin Sebor2-5/+14
PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrement and branch instructions on a count register gcc/ChangeLog: 2016-03-07 Martin Sebor <msebor@redhat.com> PR rtl-optimization/19705 * doc/invoke.texi (Options That Control Optimization): Clarify -fno-branch-count-reg. From-SVN: r234039
2016-03-07Adjust fix for PR c++/66786Patrick Palka2-2/+10
gcc/cp/ChangeLog: PR c++/66786 * pt.c (get_template_info): Handle PARM_DECL. (template_class_depth): Check DECL_P instead of VAR_OR_FUNCTION_DECL_P. From-SVN: r234038
2016-03-07re PR tree-optimization/69740 (gcc ICE at -O2 and above on valid code on ↵Richard Biener6-11/+84
x86_64-linux-gnu in "verify_loop_structure") PR tree-optimization/69740 * cfghooks.c (remove_edge): Request loop fixups if we delete an edge that might turn an irreducible loop into a natural loop. * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP. Move after definition of loops_state_clear. PR tree-optimization/69740 * gcc.c-torture/compile/pr69740-1.c: New test. * gcc.c-torture/compile/pr69740-2.c: New test. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r234036
2016-03-07Add style checks to check_GNU_style.sh.Martin Sebor2-13/+34
gcc/contrib/ChangeLog: 2016-03-07 Martin Sebor <msebor@redhat.com> * check_GNU_style.sh (color): New global variable. Add checks for trailing operators and spaces before left brackets. Tightened up a check for a trailing left curly brace. (g, ag, vg): Use color. (col): Don't complain about excessively long lines with DejaGnu directives. From-SVN: r234035
2016-03-07re PR rtl-optimization/69052 (Performance regression after r229402.)Bin Cheng2-1/+7
PR rtl-optimization/69052 * rtlanal.c (commutative_operand_precedence): Set higher precedence to CONST_WIDE_INT. From-SVN: r234034
2016-03-072016-03-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>Bill Schmidt2-0/+6
* lib/target-supports.exp (check_effective_target_whole_vector_shift): Enable for PPC64. From-SVN: r234032
2016-03-07Skip ubsan/asan internal fns with different location in tail-mergeTom de Vries2-6/+45
2016-03-07 Tom de Vries <tom@codesourcery.com> PR tree-optimization/70116 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling is_tm_ending stmts and ubsan/asan internal functions. (find_duplicate): Use it. Don't test is_tm_ending here. From-SVN: r234029
2016-03-07re PR tree-optimization/70115 (gcc ICE at -O2 (seg fault) and above on valid ↵Richard Biener4-34/+33
code on x86_64-linux-gnu) 2016-03-07 Richard Biener <rguenther@suse.de> PR tree-optimization/70115 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove. (propagate_constants_for_unrolling): Use replace_uses_by. * gcc.dg/torture/pr70115.c: New testcase. From-SVN: r234027
2016-03-07re PR middle-end/69916 ([openacc] ICE in single_succ_edge called from ↵Nathan Sidwell4-41/+97
oacc_loop_xform_loop) gcc/ PR middle-end/69916 * omp-low.c (struct oacc_loop): Add ifns. (new_oacc_loop_raw): Initialize it. (finish_oacc_loop): Clear mask & flags if no ifns. (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls. (oacc_loop_xform_loop): Add ifns arg & adjust. (oacc_loop_process): Adjust oacc_loop_xform_loop call. gcc/testsuite/ PR middle-end/69916 * c-c-++-common/goacc/pr69916.c: New. From-SVN: r234026
2016-03-07re PR rtl-optimization/70061 (ICE: SIGSEGV in delete_insn_chain() with ↵Richard Henderson4-0/+24
unused label) PR rtl-opt/70061 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust. (insert_value_copy_on_edge): Likewise. * gcc.c-torture/compile/pr70061.c: New test. From-SVN: r234025
2016-03-07re PR testsuite/70109 (FAIL: gcc.dg/vect/O3-pr36098.c scan-tree-dump-times ↵Richard Biener2-1/+10
vect "vectorizing stmts usin g SLP" 0) 2016-03-07 Richard Biener <rguenther@suse.de> PR testsuite/70109 * gcc.dg/vect/O3-pr36098.c: New testcase. From-SVN: r234024
2016-03-07[ARM] Error out of arm_neon.h if compiling for soft-float ABIKyrylo Tkachov2-0/+9
* config/arm/arm_neon.h: Show error if using with soft-float ABI. From-SVN: r234023
2016-03-07Only assume 4-byte stack alignment on 32-bit Solaris/x86 (PR target/62281)Rainer Orth2-0/+10
PR target/62281 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define. From-SVN: r234022
2016-03-07pragma_cpp_fma.c: Reset default FPU.Christophe Lyon2-0/+7
2016-03-07 Christophe Lyon <christophe.lyon@linaro.org> * gcc.target/arm/pragma_cpp_fma.c: Reset default FPU. From-SVN: r234021
2016-03-07trans.c (statement_node_p): New predicate.Eric Botcazou2-12/+46
* gcc-interface/trans.c (statement_node_p): New predicate. (gnat_to_gnu): Invoke it to detect statement nodes. In ASIS mode, do not return dummy results for expressions attached to packed array implementation types. From-SVN: r234020
2016-03-07decl.c (gnat_to_gnu_entity): Always mark the expression of a renaming ↵Eric Botcazou5-6/+41
manually in case #3. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Always mark the expression of a renaming manually in case #3. From-SVN: r234018
2016-03-07Daily bump.GCC Administrator1-1/+1
From-SVN: r234017
2016-03-06teach mklog to look in the current directory for ChangeLog filesTrevor Saunders2-1/+5
when run in repos other than gcc mklog fails to find ChangeLog files because it looks for $0/../$dir/ChangeLog, but of course if the diff is for a project other than gcc that might not exist. It should be fine to also look for $cwd/$dir/ChangeLog, and use that if we find it. This means that for example in binutils-gdb.git you can do git commit, and then in your editor read git diff HEAD~ | mklog - to generate a template ChangeLog for that commit. contrib/ChangeLog: 2016-03-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * mklog: Look for the ChangeLog file in $cwd. From-SVN: r234014
2016-03-06re PR c++/67364 ("accessing uninitialized member" error in constexpr context)Jason Merrill3-30/+61
PR c++/67364 * constexpr.c (cxx_eval_store_expression): Replace CONSTRUCTOR_ELTS in nested CONSTRUCTORs, too. From-SVN: r234013
2016-03-06Daily bump.GCC Administrator1-1/+1
From-SVN: r234012
2016-03-05libffi: Match upstream sonameRichard Henderson3-8/+13
* libtool-version: Increase to 7:0:0. * libffi.map.in: Increase version numbers to 7.0. From-SVN: r234009
2016-03-05Fix Multiply costs for AMD -march=znver1.Venkataramanan Kumar2-5/+9
2016-03-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * config/i386/i386.c (znver1_cost): Fix Multiply cost. From-SVN: r234008
2016-03-05Fix sseimul type attribute.Venkataramanan Kumar2-10/+19
2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com> Fix sseimul type attribute. * config/i386/znver1.md (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load, znver1_sseimul_avx256_load) : Fix the type attribute. (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute, pipe usage and latency. From-SVN: r234007
2016-03-05* sr.po: Update.Joseph Myers2-6/+8
From-SVN: r234006
2016-03-05re PR c++/70084 (va_arg ((ap), int) regression on s390*-*)Jakub Jelinek4-1/+36
PR c++/70084 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it to the right type. * g++.dg/expr/stdarg3.C: New test. From-SVN: r234004
2016-03-04re PR tree-optimization/69196 (code size regression with jump threading at -O2)Jeff Law2-1/+7
PR tree-optimization/69196 * gcc.dg/tree-ssa/pr69196-1.c: Limit this to sparc*-*-* and x86_64-*-*. From-SVN: r234003
2016-03-04re PR c/69973 (ICE on excessive attribute vector_size)Bernd Schmidt4-1/+12
PR c/69973 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT. PR c/69973 * gcc.dg/pr69973.c: New test. From-SVN: r234002
2016-03-04re PR rtl-optimization/69941 (bogus zero_extend transformation in postreload ↵Bernd Schmidt4-4/+53
on aarch64) PR rtl-optimization/69941 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of the reg share its mode. PR rtl-optimization/69941 * gcc.dg/torture/pr69941.c: New test. From-SVN: r234001
2016-03-04re PR c/69824 (internal compiler error in unshare_body)Bernd Schmidt4-6/+24
PR c/69824 * c-decl.c (get_parm_info): Don't queue implicit function declarations for later. PR c/69824 * gcc.dg/pr69824.c: New test. From-SVN: r234000
2016-03-04re PR tree-optimization/69196 (code size regression with jump threading at -O2)Jeff Law2-1/+12
PR tree-optimization/69196 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths): If the both SSA_NAMEs are anonymous, then consider them unassociated and include the PHI in the statement count. From-SVN: r233999
2016-03-05Handle oacc region in oacc routineTom de Vries5-13/+55
2016-03-05 Tom de Vries <tom@codesourcery.com> * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc construct in oacc routine. Check for oacc region in oacc routine. * c-c++-common/goacc/nesting-fail-1.c (f_acc_routine): New function. * c-c++-common/goacc-gomp/nesting-fail-1.c (f_acc_routine): New function. From-SVN: r233998
2016-03-05Fix PR c++/66786 (ICE with nested lambdas in variable template)Patrick Palka5-4/+36
gcc/cp/ChangeLog: PR c++/66786 * pt.c (template_class_depth): Given a lambda type, iterate into its LAMBDA_TYPE_EXTRA_SCOPE field instead of its TYPE_CONTEXT. Given a VAR_DECL, iterate into its CP_DECL_CONTEXT. gcc/testsuite/ChangeLog: PR c++/66786 * g++.dg/cpp1y/var-templ48.C: New test. * g++.dg/cpp1y/var-templ49.C: New test. From-SVN: r233997
2016-03-05Daily bump.GCC Administrator1-1/+1
From-SVN: r233994
2016-03-04* g++.dg/Wno-frame-address.C: Skip on IA-64.Eric Botcazou2-1/+5
From-SVN: r233988