chefmax [Fri, 8 Apr 2016 10:46:13 +0000 (10:46 +0000)]
2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
PR sanitizer/70541
* asan.c (instrument_derefs): If we get unknown location, extract it
with EXPR_LOCATION.
(maybe_instrument_call): Instrument gimple_call's arguments if needed.
* c-c++-common/asan/pr70541.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234827
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 8 Apr 2016 09:41:16 +0000 (09:41 +0000)]
Remove incorrect warning for parallel implicit firstprivate clause
2016-04-08 Tom de Vries <tom@codesourcery.com>
* omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
implicit firstprivate clause.
* c-c++-common/goacc/uninit-firstprivate-clause.c: New test.
* gfortran.dg/goacc/uninit-firstprivate-clause.f95: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234826
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Fri, 8 Apr 2016 09:39:44 +0000 (09:39 +0000)]
[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm Thumb2 peepholes
PR target/70566
* config/arm/thumb2.md (tst + branch-> lsls + branch
peephole below *orsi_not_shiftsi_si): Require that condition
register is dead after the peephole.
(second peephole after the above): Likewise.
* gcc.c-torture/execute/pr70566.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234825
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 8 Apr 2016 08:48:12 +0000 (08:48 +0000)]
Add goacc/uninit-copy-clause.{c,f95} testcases
2016-04-08 Tom de Vries <tom@codesourcery.com>
* c-c++-common/goacc/uninit-copy-clause.c: New test.
* gfortran.dg/goacc/uninit-copy-clause.f95: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234824
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Fri, 8 Apr 2016 02:11:52 +0000 (02:11 +0000)]
PR70117, ppc long double isinf
gcc/
PR target/70117
* builtins.c (fold_builtin_classify): For IBM extended precision,
look at just the high-order double to test for NaN.
(fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
test just the high double for Inf but both doubles for subnormal
limit.
gcc/testsuite/
* gcc.target/powerpc/pr70117.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234821
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 8 Apr 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234820
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 7 Apr 2016 21:45:26 +0000 (21:45 +0000)]
PR testsuite/70581
* gcc.dg/lto/simd-function_0.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234817
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 7 Apr 2016 21:32:05 +0000 (21:32 +0000)]
* cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
* omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
node->simdclone->mask_mode != VOIDmode masks.
(simd_clone_adjust_argument_types): Likewise. Move sc var definition
earlier, use it instead of node->simdclone.
* config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
Set clonei->mask_mode.
* c-c++-common/attr-simd.c: Add scan-assembler* directives for AVX512F
clones.
* c-c++-common/attr-simd-2.c: Likewise.
* c-c++-common/attr-simd-4.c: Likewise.
* gcc.dg/gomp/simd-clones-2.c: Likewise.
* gcc.dg/gomp/simd-clones-3.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234816
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Thu, 7 Apr 2016 16:19:20 +0000 (16:19 +0000)]
2016-04-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
gcc/testsuite/
PR testsuite/70553
* gcc.target/arm/pr70496.c: Also require arm_arm_ok effective target.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234811
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Thu, 7 Apr 2016 16:12:05 +0000 (16:12 +0000)]
Avoid needless unsharing during constexpr evaluation (PR c++/70452)
gcc/cp/ChangeLog:
PR c++/70452
* constexpr.c (find_constructor): New function.
(unshare_constructor): New function.
(cxx_eval_call_expression): Use unshare_constructor instead of
unshare_expr.
(find_array_ctor_elt): Likewise.
(cxx_eval_vec_init_1): Likewise.
(cxx_eval_store_expression): Likewise.
(cxx_eval_constant_expression): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234810
138bc75d-0d04-0410-961f-
82ee72b054a4
tschwinge [Thu, 7 Apr 2016 15:21:37 +0000 (15:21 +0000)]
Scan for parallelization of the oacc kernels test-cases in gfortran.dg/goacc
gcc/testsuite/
* gfortran.dg/goacc/kernels-loop-2.f95: Scan for parallelization.
* gfortran.dg/goacc/kernels-loop-data-2.f95: Likewise.
* gfortran.dg/goacc/kernels-loop-data-enter-exit-2.f95: Likewise.
* gfortran.dg/goacc/kernels-loop-data-enter-exit.f95: Likewise.
* gfortran.dg/goacc/kernels-loop-data-update.f95: Likewise.
* gfortran.dg/goacc/kernels-loop-data.f95: Likewise.
* gfortran.dg/goacc/kernels-loop.f95: Likewise.
* gfortran.dg/goacc/kernels-loop-n.f95: Likewise, XFAILed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234809
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Thu, 7 Apr 2016 14:26:24 +0000 (14:26 +0000)]
* testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234808
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 7 Apr 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234805
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Wed, 6 Apr 2016 23:10:14 +0000 (23:10 +0000)]
Fix C++ side of PR c/70436 (missing -Wparentheses warnings)
gcc/cp/ChangeLog:
PR c/70436
* parser.c (cp_parser_iteration_statement): New parameter IF_P.
Pass it through to cp_parser_already_scoped_statement.
(cp_parser_already_scoped_statement): New parameter IF_P. Pass
it through to cp_parser_statement.
(cp_parser_statement): Pass IF_P through to
cp_parser_iteration_statement.
(cp_parser_pragma): Adjust call to
cp_parser_iteration_statement.
gcc/testsuite/ChangeLog:
PR c/70436
* g++.dg/warn/Wparentheses-29.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234802
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Wed, 6 Apr 2016 23:07:21 +0000 (23:07 +0000)]
Fix new -Wparentheses warnings encountered during bootstrap
gcc/ChangeLog:
PR c/70436
* gimplify.c (gimplify_omp_ordered): Add explicit braces to
resolve a future -Wparentheses warning.
* omp-low.c (scan_sharing_clauses): Likewise.
* tree-parloops.c (eliminate_local_variables): Likewise.
gcc/cp/ChangeLog:
PR c/70436
* cp-tree.h (FOR_EACH_CLONE): Restructure macro to avoid
potentially generating a future -Wparentheses warning in its
callers.
gcc/fortran/ChangeLog:
PR c/70436
* openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
future -Wparentheses warning.
gcc/testsuite/ChangeLog:
PR c/70436
* g++.dg/plugin/pragma_plugin.c (handle_pragma_sayhello): Add
explicit braces to resolve a future -Wparentheses warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234801
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 6 Apr 2016 18:35:16 +0000 (18:35 +0000)]
PR preprocessor/61817
PR preprocessor/69391
* internal.h (_cpp_builtin_macro_text): Update decl.
* macro.c (_cpp_builtin_macro_text): Accept location for __LINE__.
(builtin_macro): Accept a second location for __LINE__.
(enter_macro_context): Compute both virtual and real expansion
locations for the macro.
* gcc.dg/pr61817-1.c: New test.
* gcc.dg/pr61817-2.c: New test.
* gcc.dg/pr69391-1.c: New test.
* gcc.dg/pr69391-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234794
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Wed, 6 Apr 2016 16:48:36 +0000 (16:48 +0000)]
2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70398
* lra-constraints.c (process_address_1): Check zero scale and code
for reloading with zero scale.
2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70398
* testsuite/gcc.target/aarch64/pr70398.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234792
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 6 Apr 2016 16:22:45 +0000 (16:22 +0000)]
* class.c (check_abi_tags): Fix function template handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234790
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Wed, 6 Apr 2016 15:28:18 +0000 (15:28 +0000)]
* gcc.c-torture/execute/
20101011-1.c (__VISIUM__): Set DO_TEST to 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234787
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Wed, 6 Apr 2016 15:09:37 +0000 (15:09 +0000)]
* config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
(ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234784
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Wed, 6 Apr 2016 15:07:49 +0000 (15:07 +0000)]
* src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
* src/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234782
138bc75d-0d04-0410-961f-
82ee72b054a4
yroux [Wed, 6 Apr 2016 15:07:10 +0000 (15:07 +0000)]
2016-04-06 Yvan Roux <yvan.roux@linaro.org>
Pedro Alves <palves@redhat.com>
* gcc.dg/guality/guality.h (main): Avoid GDB being blocked on signals.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234781
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 6 Apr 2016 12:47:19 +0000 (12:47 +0000)]
* config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
Add support for AVX512F clones, include them by default for
exported OpenMP declare simd functions. For AVX2 allow simdlen 32
and use it if charasteric type is 8-bit, for AVX512F allow simdlen
up to 128.
* lib/target-supports.exp (check_effective_target_vect_simd_clones):
Check for avx512f effective targets instead of avx2.
* gcc.dg/gomp/declare-simd-1.c: Add scan-assembler-times directives
for AVX512F clones.
* gcc.dg/gomp/declare-simd-3.c: Likewise.
* g++.dg/gomp/declare-simd-1.C: Likewise.
* g++.dg/gomp/declare-simd-3.C: Likewise.
* g++.dg/gomp/declare-simd-4.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234780
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 6 Apr 2016 12:42:24 +0000 (12:42 +0000)]
PR middle-end/70550
* tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
* gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
firstprivate clauses.
* omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
(lower_omp_target): Set TREE_NO_WARNING for
non-addressable possibly uninitialized vars which are copied into
addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
* c-c++-common/gomp/pr70550-1.c: New test.
* c-c++-common/gomp/pr70550-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234779
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 6 Apr 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234771
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Tue, 5 Apr 2016 23:47:21 +0000 (23:47 +0000)]
PR c++/70512
* class.c (fixup_may_alias): New.
(fixup_attribute_variants): Call it.
* g++.dg/ext/attribute-may-alias-5.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234768
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Tue, 5 Apr 2016 23:42:36 +0000 (23:42 +0000)]
* config/pa/predicates.md (integer_store_memory_operand): Accept
REG+D operands with a large offset when reload_in_progress is true.
(floating_point_store_memory_operand): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234765
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 5 Apr 2016 21:33:37 +0000 (21:33 +0000)]
PR c++/70336
* match.pd (nested int casts): Limit to GIMPLE.
* c-c++-common/pr70336.c: New test.
* gcc.dg/torture/builtin-isinf_sign-1.c (foo): Guard tests
no longer optimized away at -O0 with #ifndef __OPTIMIZE__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234764
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Tue, 5 Apr 2016 20:58:56 +0000 (20:58 +0000)]
PR ipa/66223
* ipa-devirt.c (maybe_record_node): Fix comment; use
SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
* g++.dg/ipa/devirt-51.C: Use -fsanitize=unreachable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234762
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Tue, 5 Apr 2016 19:03:46 +0000 (19:03 +0000)]
Restore atomic builtins usage in libstdc++-v3
PR libstdc++/70554
* acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Don't test
__atomic_fetch_add for bool.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234761
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Tue, 5 Apr 2016 17:21:48 +0000 (17:21 +0000)]
* testsuite/30_threads/thread/70503.cc: Require -static to work.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234757
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 5 Apr 2016 17:05:23 +0000 (17:05 +0000)]
PR rtl-optimization/70542
* ree.c (add_removable_extension): For VECTOR_MODE_P punt
if there are any uses other than insn or debug insns.
* gcc.dg/torture/pr70542.c: New test.
* gcc.target/i386/avx2-pr70542.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234756
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 5 Apr 2016 17:01:52 +0000 (17:01 +0000)]
PR tree-optimization/70509
* simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
Shift HOST_WIDE_INT_1U instead of 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234755
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 5 Apr 2016 16:58:50 +0000 (16:58 +0000)]
PR tree-optimization/70509
* tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
of the vector base type for index.
* gcc.target/i386/avx512bw-pr70509.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234754
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Tue, 5 Apr 2016 16:40:00 +0000 (16:40 +0000)]
Fix PR c++/70452 (regression in C++ parsing performance)
gcc/cp/ChangeLog:
PR c++/70452
* constexpr.c (struct fundef_copy): New struct.
(struct fundef_copies_table_t): New struct.
(fundef_copies_table): New static variable.
(maybe_initialize_fundef_copies_table): New static function.
(get_fundef_copy): New static function.
(save_fundef_copy): New static function.
(cxx_eval_call_expression): Use get_fundef_copy, and
save_fundef_copy.
(constexpr_call_table): Add "deletable" GTY marker.
gcc/testsuite/ChangeLog:
PR c++/70452
* g++.dg/ext/constexpr-vla4.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234753
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Tue, 5 Apr 2016 16:26:40 +0000 (16:26 +0000)]
PR target/70510
* config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
testsuite/ChangeLog:
PR target/70510
* gcc.target/i386/pr70510.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234752
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 5 Apr 2016 14:26:59 +0000 (14:26 +0000)]
2016-04-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/70526
* tree-sra.c (build_ref_for_offset): Use prev_base to
extract the alias pointer type.
* g++.dg/torture/pr70526.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234749
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 5 Apr 2016 14:25:35 +0000 (14:25 +0000)]
2016-04-05 Richard Biener <rguenther@suse.de>
* dse.c (struct store_info): Remove alias_set member.
(struct read_info_type): Likewise.
(clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
spill_deleted, clear_alias_set_lookup): Remove.
(get_group_info): Remove dead base == NULL_RTX case.
(dse_step0): Remove initialization of removed variables.
(delete_dead_store_insn): Reomve alias set dumping.
(free_read_records): Remove alias_set handling.
(canon_address): Remove alias_set_out parameter.
(record_store): Remove spill_alias_set, it's always zero.
(check_mem_read_rtx): Likewise.
(dse_step2): Rename from ...
(dse_step2_nospill): ... this. Adjust.
(scan_stores): Rename from ...
(scan_stores_nospill): ... this.
(scan_reads): Rename from ...
(scan_reads_nospill): ... this.
(scan_stores_spill, scan_reads_spill): Remove.
(dse_step3_scan): Remove for_spills argument which is always false.
(dse_step3): Likewise.
(dse_step5): Rename from ...
(dse_step5_nospill): ... this. Remove alias_set handling.
(rest_of_handle_dse): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234748
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Tue, 5 Apr 2016 13:35:32 +0000 (13:35 +0000)]
Ensure std::thread helpers have internal linkage
PR libstdc++/70503
* src/c++11/thread.cc (execute_native_thread_routine,
execute_native_thread_routine_compat): Give internal linkage.
* testsuite/30_threads/thread/70503.cc: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234746
138bc75d-0d04-0410-961f-
82ee72b054a4
ville [Tue, 5 Apr 2016 11:31:30 +0000 (11:31 +0000)]
PR libstdc++/70437
* include/bits/stl_pair.h (_ConstructiblePair,
_ImplicitlyConvertiblePair, _MoveConstructiblePair,
_ImplicitlyMoveConvertiblePair): Add shortcut conditions
for same-type cases.
* testsuite/20_util/pair/70437.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234743
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 5 Apr 2016 08:15:09 +0000 (08:15 +0000)]
PR target/70525
* config/i386/sse.md (*andnot<mode>3): Simplify assertions.
Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
(*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
* gcc.target/i386/pr70525.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234739
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 5 Apr 2016 08:05:06 +0000 (08:05 +0000)]
2016-04-05 Richard Biener <rguenther@suse.de>
PR middle-end/70499
* gimplify-me.c (gimple_regimplify_operands): Do not rewrite
non-register type temporaries into SSA.
* g++.dg/torture/pr70499.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234738
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 5 Apr 2016 07:23:49 +0000 (07:23 +0000)]
2016-04-05 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/
20030814-6.c: Fix testcase, disable FRE,
remove XFAIL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234737
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Tue, 5 Apr 2016 01:20:00 +0000 (01:20 +0000)]
Remove class cache_map and use ggc hash_maps instead (PR c++/70452)
gcc/cp/ChangeLog:
PR c++/70452
* cp-tree.h (class cache_map): Remove.
* constexpr.c (cv_cache): Change type to
GTY((deletable)) hash_map<tree, tree> *.
(maybe_constant_value): Adjust following the change to cv_cache.
(clear_cv_cache): New static function.
(clear_cv_and_fold_caches): Use it.
* cp-gimplify.c (fold_cache): Change type to
GTY((deletable)) hash_map<tree, tree> *.
(clear_fold_cache): Adjust following the change to fold_cache.
(cp_fold): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234732
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 5 Apr 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234731
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Mon, 4 Apr 2016 22:29:02 +0000 (22:29 +0000)]
PR target/67172
* libgcc2.c (L__main): Undefine __LIBGCC_EH_FRAME_SECTION_NAME__ if
__MINGW32__ is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234727
138bc75d-0d04-0410-961f-
82ee72b054a4
seurer [Mon, 4 Apr 2016 18:46:05 +0000 (18:46 +0000)]
2016-04-04 Bill Seurer <seurer@linux.vnet.ibm.com>
* MAINTAINERS (Write After Approval): Add myself.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234724
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 4 Apr 2016 17:20:53 +0000 (17:20 +0000)]
PR middle-end/70307
* gcc.dg/torture/pr70307.c: Add -Wno-psabi to dg-options. Prune
rs6000 ABI warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234723
138bc75d-0d04-0410-961f-
82ee72b054a4
segher [Mon, 4 Apr 2016 16:37:58 +0000 (16:37 +0000)]
gnattools: Clean config.cache (PR70173)
The config.cache file should be deleted by "make distclean", just like
config.log and config.status . The directory itself is still not deleted
(just like the gotools and libcc1 directories).
gnattools/
PR bootstrap/70173
* Makefile.in (distclean): Also delete config.cache .
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234721
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Mon, 4 Apr 2016 15:54:39 +0000 (15:54 +0000)]
PR ipa/66223
* ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
calls when sanitizing.
(possible_polymorphic_call_target_p)" FIx formating.
* g++.dg/ipa/devirt-51.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234719
138bc75d-0d04-0410-961f-
82ee72b054a4
wschmidt [Mon, 4 Apr 2016 15:42:19 +0000 (15:42 +0000)]
[gcc]
2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Jakub Jelinek <jakub@redhat.com>
PR middle-end/70457
* tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
to ensure a call statement is compatible with a built-in's
prototype.
* tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
Likewise.
[gcc/testsuite]
2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Jakub Jelinek <jakub@redhat.com>
PR middle-end/70457
* gcc.dg/torture/pr70457.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234716
138bc75d-0d04-0410-961f-
82ee72b054a4
vehre [Mon, 4 Apr 2016 10:32:32 +0000 (10:32 +0000)]
gcc/fortran/ChangeLog:
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/67538
* resolve.c (resolve_allocate_expr): Emit error message when no
array spec and no array valued source= expression is given in an
F2008 allocate() for an array to allocate.
gcc/testsuite/ChangeLog:
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/67538
* gfortran.dg/allocate_with_source_19.f08: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234714
138bc75d-0d04-0410-961f-
82ee72b054a4
vehre [Mon, 4 Apr 2016 09:32:28 +0000 (09:32 +0000)]
gcc/fortran/ChangeLog:
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/65795
* trans-array.c (gfc_array_allocate): When the array is a coarray,
do not nullyfing its allocatable components in array_allocate, because
the nullify missed the array ref and nullifies the wrong component.
Cosmetics.
gcc/testsuite/ChangeLog:
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/65795
* gfortran.dg/coarray_allocate_6.f08: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234710
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 4 Apr 2016 09:30:16 +0000 (09:30 +0000)]
2016-04-04 Richard Biener <rguenther@suse.de>
PR rtl-optimization/70484
* rtl.h (canon_output_dependence): Declare.
* alias.c (canon_output_dependence): New function.
* dse.c (record_store): Use canon_output_dependence rather
than canon_true_dependence.
* gcc.dg/torture/pr70484.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234709
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Mon, 4 Apr 2016 09:26:29 +0000 (09:26 +0000)]
PR ipa/68881
* cgraph.h (symtab_node::copy_visibility_from): New function.
* symtab.c (symtab_node::copy_visibility_from): New function.
* ipa-visibility.c (optimize_weakref): New function.
(function_and_variable_visibility): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234708
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Mon, 4 Apr 2016 08:46:51 +0000 (08:46 +0000)]
Fix PR hsa/70402
PR hsa/70402
* hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
value that is really in range handled by SBR instruction.
* hsa-brig.c (emit_switch_insn): Do not emit unconditional
jump.
* hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
* hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234707
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Mon, 4 Apr 2016 08:11:46 +0000 (08:11 +0000)]
PR c/70307
* c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
* gcc.dg/torture/pr70307.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234706
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 4 Apr 2016 00:16:16 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234705
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Sun, 3 Apr 2016 12:50:54 +0000 (12:50 +0000)]
gcc/
PR target/70416
PR target/67391
* config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
set, but not for SP_REG operands.
gcc/testsuite/
PR target/70416
PR target/67391
* gcc.target/sh/torture/pr70416.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234702
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 3 Apr 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234701
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Sat, 2 Apr 2016 17:14:48 +0000 (17:14 +0000)]
PR c++/67376 - [5/6 regression] Comparison with pointer to past-the-end
of array fails inside constant expression
PR c++/70170 - [6 regression] bogus not a constant expression error comparing
pointer to array to null
PR c++/70172 - incorrect reinterpret_cast from integer to pointer error
on invalid constexpr initialization
PR c++/70228 - insufficient detail in diagnostics for a constexpr out of bounds
array subscript
gcc/testsuite/ChangeLog:
2016-04-02 Martin Sebor <msebor@redhat.com>
PR c++/67376
PR c++/70170
PR c++/70172
PR c++/70228
* g++.dg/cpp0x/constexpr-array-ptr10.C: New test.
* g++.dg/cpp0x/constexpr-array-ptr9.C: New test.
* g++.dg/cpp0x/constexpr-nullptr-1.C: New test.
* g++.dg/cpp0x/constexpr-array5.C: Adjust text of expected diagnostic.
* g++.dg/cpp0x/constexpr-string.C: Same.
* g++.dg/cpp0x/constexpr-wstring2.C: Same.
* g++.dg/cpp0x/pr65398.C: Same.
* g++.dg/ext/constexpr-vla1.C: Same.
* g++.dg/ext/constexpr-vla2.C: Same.
* g++.dg/ext/constexpr-vla3.C: Same.
* g++.dg/ubsan/pr63956.C: Same.
gcc/cp/ChangeLog:
2016-04-02 Martin Sebor <msebor@redhat.com>
PR c++/67376
PR c++/70170
PR c++/70172
PR c++/70228
* constexpr.c (diag_array_subscript): New function.
(cxx_eval_array_reference): Detect out of bounds array indices.
gcc/ChangeLog:
2016-04-02 Martin Sebor <msebor@redhat.com>
PR c++/67376
* fold-const.c (maybe_nonzero_address): New function.
(fold_comparison): Call it. Fold equality and relational
expressions involving null pointers.
(tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234698
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 2 Apr 2016 08:56:19 +0000 (08:56 +0000)]
* gcc-interface/decl.c (components_to_record): Restrict the previous
change to fields with variable size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234696
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sat, 2 Apr 2016 01:35:45 +0000 (01:35 +0000)]
PR c++/70449
PR c++/70344
* pt.c (instantiate_decl): A function isn't fully defined if
DECL_INITIAL is error_mark_node.
* constexpr.c (cxx_eval_call_expression): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234695
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Sat, 2 Apr 2016 00:47:53 +0000 (00:47 +0000)]
runtime: Use atomic load for in entersyscall.
Reportedly fixes PPC64 deadlock.
From a comment by Gabriel Russell.
Fixes golang/go#15051.
Reviewed-on: https://go-review.googlesource.com/21450
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234694
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Sat, 2 Apr 2016 00:24:44 +0000 (00:24 +0000)]
Add missing ChangeLog entry for PR target/70439
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234693
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Sat, 2 Apr 2016 00:18:41 +0000 (00:18 +0000)]
Add missing ChangeLog entry for PR testsuite/70364
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234692
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 2 Apr 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234691
138bc75d-0d04-0410-961f-
82ee72b054a4
evandro [Fri, 1 Apr 2016 19:55:52 +0000 (19:55 +0000)]
[AArch64] Fix SIMD predicate
Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate the
"Y" constraint (scalar FP 0.0 immediate).
* gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
Add the "const_double" to the list of operand constraints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234685
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 1 Apr 2016 16:08:21 +0000 (16:08 +0000)]
PR rtl-optimization/70467
* config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
If low word of the last operand is 0, just emit addition/subtraction
for the high word.
* gcc.target/i386/pr70467-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234679
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Fri, 1 Apr 2016 15:35:54 +0000 (15:35 +0000)]
PR70404 S/390: Fix insv expansion.
While the expander accepts general_operand as src operand the risbg
pattern only immediate_operand. Unfortunately the expander called
force_reg only for VOIDmode constants missing things like
e.g. symbol_refs. Fixed with the attached patch.
gcc/ChangeLog:
2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/70404
* config/s390/s390.c (s390_expand_insv): Check for everything
constant instead of just VOIDmode stuff.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234678
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 1 Apr 2016 15:27:11 +0000 (15:27 +0000)]
PR c++/70488
* init.c (warn_placement_new_too_small): Test whether
DECL_SIZE_UNIT or TYPE_SIZE_UNIT are integers that fit into uhwi.
* g++.dg/init/new47.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234676
138bc75d-0d04-0410-961f-
82ee72b054a4
ramana [Fri, 1 Apr 2016 14:58:53 +0000 (14:58 +0000)]
Fix PR target/70496
While doing the unified asm rewrite - I inadvertently changed the
meaning of ASM_APP_OFF which causes failures when folks who know what
they are doing switch between arm and thumb states within a
function. The intent of the unified asm rewrite was not to affect any
inline assembler code in that it would remain in divided syntax by
default and switching back to unified asm in normal compiled code
after the inline assembler block. Thanks to Jim Wilson for pointing it
out on the linaro list.
Fixed thusly and a test is added. Tested arm-none-eabi cross and
applied.
Ramana
2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/70496
* config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM
and TARGET_THUMB.
2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/70496
* gcc.target/arm/pr70496.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234675
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 1 Apr 2016 12:57:52 +0000 (12:57 +0000)]
* tree.def (TRY_CATCH_EXPR): Correct documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234671
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 1 Apr 2016 12:12:27 +0000 (12:12 +0000)]
fix flubbed changelog
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234668
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)]
PR c++/68475
* decl.c (check_redeclaration_exception_specification): Check
regardless of -fno-exceptions.
* typeck2.c (merge_exception_specifiers): Relax assert by checking
flag_exceptions too.
* g++.dg/g++.dg/cpp0x/noexcept29.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234667
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Fri, 1 Apr 2016 10:40:51 +0000 (10:40 +0000)]
gcc/testsuite/
PR target/69890
* gcc.dg/strlenopt.h (memmove): New.
* gcc.target/i386/chkp-strlen-1.c: Include "../../gcc.dg/strlenopt.h"
instead of "string.h".
* gcc.target/i386/chkp-strlen-2.c: Likewise.
* gcc.target/i386/chkp-strlen-3.c: Likewise.
* gcc.target/i386/chkp-strlen-4.c: Likewise.
* gcc.target/i386/chkp-strlen-5.c: Likewise.
* gcc.target/i386/chkp-stropt-1.c: Likewise.
* gcc.target/i386/chkp-stropt-10.c: Likewise.
* gcc.target/i386/chkp-stropt-11.c: Likewise.
* gcc.target/i386/chkp-stropt-12.c: Likewise.
* gcc.target/i386/chkp-stropt-13.c: Likewise.
* gcc.target/i386/chkp-stropt-14.c: Likewise.
* gcc.target/i386/chkp-stropt-15.c: Likewise.
* gcc.target/i386/chkp-stropt-16.c: Likewise.
* gcc.target/i386/chkp-stropt-2.c: Likewise.
* gcc.target/i386/chkp-stropt-3.c: Likewise.
* gcc.target/i386/chkp-stropt-4.c: Likewise.
* gcc.target/i386/chkp-stropt-5.c: Likewise.
* gcc.target/i386/chkp-stropt-6.c: Likewise.
* gcc.target/i386/chkp-stropt-7.c: Likewise.
* gcc.target/i386/chkp-stropt-8.c: Likewise.
* gcc.target/i386/chkp-stropt-9.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234666
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 1 Apr 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234661
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Thu, 31 Mar 2016 20:06:38 +0000 (20:06 +0000)]
Fix g++.dg/template/ptrmem30.C with Solaris ld
* g++.dg/template/ptrmem30.C (read): Rename to data_read.
(Holder::foo): Reflect this.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234652
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Thu, 31 Mar 2016 17:51:13 +0000 (17:51 +0000)]
2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70461
* ira-color.c (allocno_copy_cost_saving): Use allocno class if it
is necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234649
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Thu, 31 Mar 2016 17:28:29 +0000 (17:28 +0000)]
Fix PR hsa/70399
PR hsa/70399
* hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
a tree value or an immediate integer value to a buffer
that is eventually copied to a BRIG section.
(emit_immediate_operand): Call the function here.
* hsa-dump.c (dump_hsa_immed): Remove checking assert.
* hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
of class' fields that are removed.
(hsa_op_immed::~hsa_op_immed): Remove deinitialization.
* hsa.h (class hsa_op_immed): Remove m_brig_repr and
m_brig_repr_size fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234647
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 31 Mar 2016 17:23:21 +0000 (17:23 +0000)]
Add BZ markers to last commit
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234646
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 31 Mar 2016 17:20:53 +0000 (17:20 +0000)]
* cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
btypevec/ktypevec.
* testsuite/demangle-expected: Add coverage tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234645
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Thu, 31 Mar 2016 17:10:48 +0000 (17:10 +0000)]
HSA: handle alignment of string builtins (PR hsa/70391)
PR hsa/70391
* hsa-gen.c (hsa_function_representation::update_dominance): New
function.
(convert_addr_to_flat_segment): Likewise.
(gen_hsa_memory_set): New alignment argument.
(gen_hsa_ctor_assignment): Likewise.
(gen_hsa_insns_for_single_assignment): Provide alignment
to gen_hsa_ctor_assignment.
(gen_hsa_insns_for_direct_call): Add new argument.
(expand_lhs_of_string_op): New function.
(expand_string_operation_builtin): Likewise.
(expand_memory_copy): New function.
(expand_memory_set): New function.
(gen_hsa_insns_for_call): Use HOST_WIDE_INT.
(convert_switch_statements): Change signature.
(generate_hsa): Use a return value of the function.
(pass_gen_hsail::execute): Do not call
convert_switch_statements here.
* hsa-regalloc.c (hsa_regalloc): Call update_dominance.
* hsa.h (hsa_function_representation::m_modified_cfg):
New flag.
(hsa_function_representation::update_dominance): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234644
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Thu, 31 Mar 2016 17:10:15 +0000 (17:10 +0000)]
HSA: support alignment for hsa_symbols (PR hsa/70391)
PR hsa/70391
* hsa-brig.c (emit_directive_variable): Emit alignment
according to hsa_symbol::m_align.
* hsa-dump.c (hsa_byte_alignment): Move the function to
another file.
(dump_hsa_symbol): Dump alignment of HSA symbols.
* hsa-gen.c (get_symbol_for_decl): Set-up alignment
of a symbol.
(gen_hsa_addr_with_align): New function.
(hsa_bitmemref_alignment): Use newly added function.
(gen_hsa_insns_for_load): Likewise.
(gen_hsa_insns_for_store): Likewise.
(gen_hsa_memory_copy): New argument added.
(gen_hsa_insns_for_single_assignment): Respect
alignment for assignments processed via
gen_hsa_memory_copy.
(gen_hsa_insns_for_direct_call): Likewise.
(gen_hsa_insns_for_return): Likewise.
(gen_function_def_parameters): Set default
alignment.
* hsa.c (hsa_object_alignment): New function.
(hsa_byte_alignment): Pasted function.
* hsa.h (hsa_symbol::m_align): New field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234643
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 31 Mar 2016 16:18:27 +0000 (16:18 +0000)]
* decl.c (start_preparsed_function): Remove unnecessary bracing.
(finish_destructor_body): Don't emit operator delete here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234640
138bc75d-0d04-0410-961f-
82ee72b054a4
amker [Thu, 31 Mar 2016 16:17:44 +0000 (16:17 +0000)]
* tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
scratch field for goto case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234639
138bc75d-0d04-0410-961f-
82ee72b054a4
jgreenhalgh [Thu, 31 Mar 2016 15:48:47 +0000 (15:48 +0000)]
[Patch ARM] Delete ASM_OUTPUT_DEF and fall back to default .set directive
gcc/
* config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234638
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Thu, 31 Mar 2016 15:37:12 +0000 (15:37 +0000)]
gcc/
PR target/70442
* config/i386/i386.c (scalar_chain::convert_op): Fix
description.
(scalar_chain::convert_insn): Call convert_op for reg
moves to handle undefined registers.
gcc/testsuite/
PR target/70442
* gcc.dg/pr70442.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234637
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 31 Mar 2016 15:30:33 +0000 (15:30 +0000)]
PR c++/70393
* varasm.c (output_constructor_regular_field): Flush bitfield
earlier. Assert we don't want to move backwards.
cp/
* constexpr.c (cxx_eval_store_expression): Keep CONSTRUCTOR
elements in field order.
testsuite/
* g++.dg/cpp0x/constexpr-virtual6.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234636
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 31 Mar 2016 15:23:29 +0000 (15:23 +0000)]
Fix PR target/70453.
gcc/
* config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
gcc/testsuite/
* gcc.target/i386/pr70453.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234634
138bc75d-0d04-0410-961f-
82ee72b054a4
abel [Thu, 31 Mar 2016 14:37:08 +0000 (14:37 +0000)]
PR target/70292
* gcc.c-torture/pr70292.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234627
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 31 Mar 2016 14:29:15 +0000 (14:29 +0000)]
PR c/70297
* c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
* decl.c (duplicate_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
* c-c++-common/pr70297.c: New test.
* g++.dg/cpp0x/typedef-redecl.C: New test.
* gcc.dg/typedef-redecl2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234626
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 31 Mar 2016 13:00:52 +0000 (13:00 +0000)]
PR rtl-optimization/70460
* ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
with operand from REG_LABEL_OPERAND, instead substitute
SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
Don't do anything for REG_NON_LOCAL_GOTO jumps.
* gcc.c-torture/execute/pr70460.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234614
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Thu, 31 Mar 2016 10:42:55 +0000 (10:42 +0000)]
Do not call todo_after for a discarded function
* passes.c (execute_one_pass): Do not call
todo_after for a discarded function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234613
138bc75d-0d04-0410-961f-
82ee72b054a4
amker [Thu, 31 Mar 2016 08:57:13 +0000 (08:57 +0000)]
* tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
(no_cost, infinite_cost): Initialize the new field.
(get_computation_cost_at): Record setup cost.
(determine_use_iv_cost_address): Skip cost computation for sub
uses if we can estimate it without losing accuracy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234612
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 31 Mar 2016 08:49:09 +0000 (08:49 +0000)]
2016-03-31 Richard Biener <rguenther@suse.de>
PR c++/70430
* typeck.c (cp_build_binary_op): Fix operand order of vector
conditional in truth op handling.
* g++.dg/ext/vector30.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234611
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 31 Mar 2016 00:16:18 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234607
138bc75d-0d04-0410-961f-
82ee72b054a4
dominiq [Wed, 30 Mar 2016 20:47:45 +0000 (20:47 +0000)]
2016-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Dominique d'Humieres <dominiq@lps.ens.fr>
PR libgfortran/70235
* io/write_float.def: Fix PF format for negative values of the scale
factor.
2016-03-30 Dominique d'Humieres <dominiq@lps.ens.fr>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
* gfortran.dg/fmt_pf.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234600
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 30 Mar 2016 17:52:59 +0000 (17:52 +0000)]
* da.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234588
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Wed, 30 Mar 2016 17:08:08 +0000 (17:08 +0000)]
Forward-port gcc.target/i386/avx-vextractf128-256-5.c from 5 branch (PR testsuite/70356)
Forward-port from 5 branch
2016-03-30 Jakub Jelinek <jakub@redhat.com>
PR testsuite/70356
* gcc.target/i386/avx-vextractf128-256-5.c: Move
dg-require-effective-target after dg-do.
2015-12-30 Kirill Yukhin <kirill.yukhin@intel.com>
* gcc.target/i386/avx-vextractf128-256-5.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234580
138bc75d-0d04-0410-961f-
82ee72b054a4