Commit Graph

144727 Commits

Author SHA1 Message Date
Jakub Jelinek
2bd8090ff5 re PR middle-end/70127 (wrong code on x86_64-linux-gnu at -O3 in 32-bit and 64-bit modes)
PR tree-optimization/70127
	* fold-const.c (operand_equal_p): Revert the 2015-10-28 change.

	* gcc.c-torture/execute/pr70127.c: New test.

From-SVN: r234090
2016-03-09 21:05:40 +01:00
Cesar Philippidis
96b3c82df1 c-parser.c (c_parser_oacc_loop): Update cclauses and clauses when calling c_finish_omp_clauses.
gcc/c/
	* c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
	when calling c_finish_omp_clauses.

	gcc/cp/
	* parser.c (cp_parser_oacc_loop): Update cclauses and clauses
	when calling c_finish_omp_clauses.

	gcc/testsuite/
	* c-c++-common/goacc/combined-directives-2.c: New test.

From-SVN: r234089
2016-03-09 11:39:53 -08:00
David Malcolm
b4f3232d69 PR c++/70105: prevent nonsensical underline spew for macro expansions
diagnostic_show_locus can sometimes do the wrong thing when handling
expressions built up from macros.

PR c++/70105 (currently marked as a P3 regression) has an example of
a diagnostic where over 500 lines of irrelevant source are printed,
and underlined, giving >1000 lines of useless spew to stderr.

This patch adds extra sanitization to diagnostic-show-locus.c, so that
we only attempt to print underlines and secondary locations if such
locations are "sufficiently sane" relative to the primary location
of a diagnostic.

This "sufficiently sane" condition is implemented by a new helper
function compatible_locations_p, which requires such locations to
have the same macro expansion hierarchy as the primary location,
using linemap_macro_map_loc_unwind_toward_spelling, effectively
mimicing the expansion performed by LRK_SPELLING_LOCATION.

This may be too strong a condition, but it effectively fixes
PR c++/70105, without removing any underlines in my testing.

Successfully bootstrapped&regrtested in combination with the previous
patch on x86_64-pc-linux-gnu; adds 15 new PASS results to g++.sum
and 4 new PASS results to gcc.sum.

gcc/ChangeLog:
	PR c/68473
	PR c++/70105
	* diagnostic-show-locus.c (compatible_locations_p): New function.
	(layout::layout): Sanitize ranges using compatible_locations_p.

gcc/testsuite/ChangeLog:
	PR c/68473
	PR c++/70105
	* g++.dg/diagnostic/pr70105.C: New test.
	* gcc.dg/plugin/diagnostic-test-expressions-1.c (foo): New decl.
	(test_multiple_ordinary_maps): New test function.

libcpp/ChangeLog:
	PR c/68473
	PR c++/70105
	* line-map.c (linemap_macro_map_loc_unwind_toward_spelling): Move
	decl...
	* include/line-map.h
	(linemap_macro_map_loc_unwind_toward_spelling): ...here,
	converting from static to extern.

From-SVN: r234088
2016-03-09 18:23:27 +00:00
David Malcolm
40499f81a6 PR c++/70105: Defer location expansion until diagnostic_show_locus
gcc/ChangeLog:
	PR c/68473
	PR c++/70105
	* diagnostic-show-locus.c (layout_range::layout_range): Replace
	location_range param with three const expanded_locations * and a
	bool.
	(layout::layout): Replace call to
	rich_location::lazily_expand_location with get_expanded_location.
	Extract the range and perform location expansion here, passing
	the results to the layout_range ctor.
	* diagnostic.c (source_range::debug): Delete.
	* diagnostic.h (diagnostic_expand_location): Reimplement in terms
	of rich_location::get_expanded_location.
	* gcc-rich-location.c (get_range_for_expr): Delete.
	(gcc_rich_location::add_expr): Reimplement to avoid the
	rich_location::add_range overload that took a location_range,
	passing a location_t instead.

gcc/testsuite/ChangeLog:
	PR c/68473
	PR c++/70105
	* gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree):
	Drop range information from call to inform_at_rich_loc.
	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.c (add_range):
	New.
	(test_show_locus): Replace calls to rich_location::add_range with
	calls to add_range.  Rewrite the tests that used the now-defunct
	rich_location ctor taking a source_range.  Simplify other tests
	by replacing calls to COMBINE_LOCATION_DATA with calls to
	make_location.

libcpp/ChangeLog:
	PR c/68473
	PR c++/70105
	* include/line-map.h (source_range::debug): Delete.
	(struct location_range): Update comment.  Replace
	expanded_location fields "m_start", "m_finish", and "m_caret" with
	a source_location field: "m_loc".
	(class rich_location): Reword comment.
	(rich_location::get_loc): Reimplement in terms of a new overloaded
	variant which takes an unsigned int.
	(rich_location::get_loc_addr): Delete.
	(rich_location::add_range): Drop params "start" and "finish" in
	favor of param "loc".  Drop overloaded variants taking a
	source_range or location_range *.
	(rich_location::lazily_expand_location): Delete in favor of...
	(rich_location::get_expanded_location): New decl.
	(rich_location::m_loc): Delete field.
	(rich_location::m_column_override): New field.
	* line-map.c (rich_location::rich_location):  Drop name of
	line_maps * param.  Update initializations for deletion of field
	"m_loc" and addition of field "m_column_override".  Reimplement
	body as a call to add_range.  Delete overloaded variant taking a
	source_range.
	(rich_location::get_loc): New function.
	(rich_location::lazily_expand_location): Delete in favor of...
	(rich_location::get_expanded_location): New function.
	(rich_location::override_column): Reimplement.
	(rich_location::add_range): Drop params "start" and "finish" in
	favor of param "loc".  Eliminate location expansion in favor of
	simply storing loc.  Drop overloaded variants taking a
	source_range or location_range *.
	(rich_location::set_range): Eliminate location expansion.

From-SVN: r234087
2016-03-09 18:14:43 +00:00
Richard Biener
c9e336624a re PR tree-optimization/70138 (wrong code at -O3 on x86_64-linux-gnu)
2016-03-09  Richard Biener  <rguenther@suse.de>
	Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/70138
	* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
	Also skip vect_double_reduction_def.

	* gcc.dg/vect/pr70138-1.c: New testcase.
	* gcc.dg/vect/pr70138-2.c: Likewise.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r234086
2016-03-09 16:41:19 +00:00
Jakub Jelinek
2c73b7640d re PR target/70049 (Error: operand size mismatch for `vpextrw' (wrong assembly generated) with -masm=intel)
PR target/70049
	* config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
	if the operand is "m".

	* gcc.target/i386/pr70049.c: New test.

From-SVN: r234085
2016-03-09 15:10:58 +01:00
Richard Biener
c06d25bb33 re PR c/70143 (false strict-aliasing warning)
2016-03-09  Richard Biener  <rguenther@suse.de>

	c-family/
	PR c/70143
	* c-common.c (strict_aliasing_warning): Add back
	alias_sets_conflict_p check.

	* gcc.dg/Wstrict-aliasing-bogus-upcast.c: New testcase.
	* gcc.dg/Wstrict-aliasing-struct-with-char-member.c: Likewise.
	* gcc.dg/Wstrict-aliasing-struct-member.c: Remove again.

From-SVN: r234084
2016-03-09 14:01:16 +00:00
Nathan Sidwell
8e80c4d476 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
From-SVN: r234083
2016-03-09 13:33:03 +00:00
Rainer Orth
5828a50193 Really don't xfail gcc.dg/vect/bb-slp-34.c on aarch64, arm
* gcc.dg/vect/bb-slp-34.c: Really don't xfail on aarch64-*-*,
	arm-*-*.

From-SVN: r234081
2016-03-09 13:09:02 +00:00
Jakub Jelinek
5a9def3777 re PR target/67278 (ICE: verify_gimple failed on darwin 14.5 x86_64)
PR middle-end/67278
	* gcc.dg/simd-7.c: Add -w -Wno-psabi to dg-options.

From-SVN: r234080
2016-03-09 10:23:53 +01:00
Jakub Jelinek
2e141c8daf re PR target/67278 (ICE: verify_gimple failed on darwin 14.5 x86_64)
PR target/67278
	* gcc.dg/simd-8.c: Add -w -Wno-psabi to dg-options.

	PR middle-end/70050
	* gcc.dg/pr70050.c: Add -w to dg-options.  Fix up PR number
	in testcase comment.

From-SVN: r234079
2016-03-09 10:20:18 +01:00
Tom de Vries
5a6452e660 Add oacc kernels testcases in libgomp.oacc-fortran
2016-03-09  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
	* testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
	* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
	Same.
	* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
	* testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
	* testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
	* testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.

From-SVN: r234078
2016-03-09 09:14:21 +00:00
Tom de Vries
bf751f40a8 Add oacc kernels test-cases in gfortran.dg/goacc
2016-03-09  Tom de Vries  <tom@codesourcery.com>

	* gfortran.dg/goacc/kernels-loop-2.f95: New test.
	* gfortran.dg/goacc/kernels-loop-data-2.f95: New test.
	* gfortran.dg/goacc/kernels-loop-data-enter-exit-2.f95: New test.
	* gfortran.dg/goacc/kernels-loop-data-enter-exit.f95: New test.
	* gfortran.dg/goacc/kernels-loop-data-update.f95: New test.
	* gfortran.dg/goacc/kernels-loop-data.f95: New test.
	* gfortran.dg/goacc/kernels-loop-n.f95: New test.
	* gfortran.dg/goacc/kernels-loop.f95: New test.

From-SVN: r234077
2016-03-09 09:14:05 +00:00
Venkataramanan Kumar
b827e3fe5e Fix cost table initialization order for AMD znver1 target.
2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        *  config/i386/i386.c (processor_target_table): Fix cost table 
        intialization order for znver1.

From-SVN: r234076
2016-03-09 07:32:11 +00:00
Martin Sebor
e210c999a8 PR c++/62096 - unexpected warning overflow in implicit constant conversion
gcc/testsuite/ChangeLog:
2016-03-08  Martin Sebor  <msebor@redhat.com>

        PR c++/62096 
        * g++.dg/warn/overflow-warn-7.C: New test.

From-SVN: r234075
2016-03-08 21:20:07 -07:00
GCC Administrator
f92d4ac289 Daily bump.
From-SVN: r234074
2016-03-09 00:16:12 +00:00
Jason Merrill
80aac5c820 Remove Concepts from -std=c++1z.
gcc/c-family/
	* c-opts.c (set_std_cxx1z): Don't enable concepts.
gcc/testsuite/
	* lib/g++-dg.exp (g++-dg-runtest): Handle "concepts" in std list.
	* lib/target-supports.exp (check_effective_target_concepts): New.
gcc/cp/
	* parser.c (cp_parser_diagnose_invalid_type_name): Give helpful
	diagnostic for use of "concept".
	(cp_parser_requires_clause_opt): And "requires".
	(cp_parser_type_parameter, cp_parser_late_return_type_opt)
	(cp_parser_explicit_template_declaration): Adjust.
	* Make-lang.in (check-c++-all): Add "concepts" to std list.

From-SVN: r234069
2016-03-08 17:30:44 -05:00
Jason Merrill
1e546b68c1 P0036R0: Unary Folds and Empty Parameter Packs
* pt.c (expand_empty_fold): Remove special cases for *,+,&,|.

From-SVN: r234068
2016-03-08 17:30:30 -05:00
Jakub Jelinek
d259b234a3 re PR sanitizer/70135 (-fsanitize=undefined causes static_assert to fail)
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-08 21:05:21 +01:00
Jakub Jelinek
56aae4b7c0 ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling - becuase -> because.
* 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 18:49:34 +01:00
Kyrylo Tkachov
6edbcfc3f4 [obvious] Fix typo in tree-ssa-math-opts.c
* tree-ssa-math-opts.c: Fix typo in comment.

From-SVN: r234058
2016-03-08 13:39:09 +00:00
Jakub Jelinek
12b81409d9 re PR target/70110 (ICE at -O3 in the 32-bit mode in set_last_insn, at 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 09:05:26 +01:00
Joseph Myers
324167d122 * sv.po: Update.
From-SVN: r234056
2016-03-08 01:35:13 +00:00
GCC Administrator
079926080a Daily bump.
From-SVN: r234055
2016-03-08 00:16:15 +00:00
Uros Bizjak
1e4490dc27 re PR target/70064 (Wrong code with custom flags and quite big testcase @ i686)
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 20:54:02 +01:00
Martin Jambor
96a71bd53c [hsa testsuite] New directory for HSA-specific C testcases
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 19:45:17 +01:00
Martin Jambor
02e0b5b245 [hsa testsuite] Adjust libgomp tests that do not work on host fallback
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 19:42:33 +01:00
Martin Jambor
45548f30c6 [hsa testsuite] Suppress hsa warnings in libgomp tests
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 19:41:18 +01:00
Martin Jambor
b4e9f2aa1c [hsa testsuite] Suppress hsa warnings in compiler gomp tests
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 19:39:51 +01:00
Martin Jambor
f86e631e8b [hsa testsuite] Gridification tests
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 19:37:20 +01:00
Martin Jambor
4bf1cec711 [hsa] Consodlidate GTY roots for trees used during expansion to HSA
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-07 19:31:53 +01:00
Andre Vieira
94156b3f37 pr45701-1.c: Change assembler scan to not trigger for cortex-r8, when 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-07 18:04:31 +00:00
Andre Vieira
f2aac9da3d arm-cores.def (cortex-r8): New.
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-07 18:04:20 +00:00
Martin Sebor
92f87f08e6 PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrement
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-07 10:10:12 -07:00
Patrick Palka
dbb23418b2 Adjust fix for PR c++/66786
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-07 17:09:53 +00:00
Richard Biener
a84a49b7e7 re PR tree-optimization/69740 (gcc ICE at -O2 and above on valid code on 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-07 10:01:54 -07:00
Martin Sebor
55a82b661e Add style checks to check_GNU_style.sh.
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-07 10:01:44 -07:00
Bin Cheng
b7b528a43b re PR rtl-optimization/69052 (Performance regression after r229402.)
PR rtl-optimization/69052
	* rtlanal.c (commutative_operand_precedence): Set higher precedence
	to CONST_WIDE_INT.

From-SVN: r234034
2016-03-07 16:39:27 +00:00
Bill Schmidt
e41f6c9e28 2016-03-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* lib/target-supports.exp
	(check_effective_target_whole_vector_shift): Enable for PPC64.

From-SVN: r234032
2016-03-07 15:22:34 +00:00
Tom de Vries
3c137fc947 Skip ubsan/asan internal fns with different location in tail-merge
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-07 14:50:13 +00:00
Richard Biener
57548bf579 re PR tree-optimization/70115 (gcc ICE at -O2 (seg fault) and above on valid 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-07 14:15:56 +00:00
Nathan Sidwell
4ae13300cd re PR middle-end/69916 ([openacc] ICE in single_succ_edge called from 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-07 13:22:07 +00:00
Richard Henderson
5edb985350 re PR rtl-optimization/70061 (ICE: SIGSEGV in delete_insn_chain() with 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-07 03:48:57 -08:00
Richard Biener
2067a8f3c2 re PR testsuite/70109 (FAIL: gcc.dg/vect/O3-pr36098.c scan-tree-dump-times 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 11:45:49 +00:00
Kyrylo Tkachov
60add66bd2 [ARM] Error out of arm_neon.h if compiling for soft-float ABI
* config/arm/arm_neon.h: Show error if using with soft-float ABI.

From-SVN: r234023
2016-03-07 11:45:41 +00:00
Rainer Orth
41604008c0 Only assume 4-byte stack alignment on 32-bit Solaris/x86 (PR target/62281)
PR target/62281
	* config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.

From-SVN: r234022
2016-03-07 09:51:31 +00:00
Christophe Lyon
4145a9b715 pragma_cpp_fma.c: Reset default FPU.
2016-03-07  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/arm/pragma_cpp_fma.c: Reset default FPU.

From-SVN: r234021
2016-03-07 10:43:48 +01:00
Eric Botcazou
4c33516338 trans.c (statement_node_p): New predicate.
* 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-07 08:46:52 +00:00
Eric Botcazou
1878be3223 decl.c (gnat_to_gnu_entity): Always mark the expression of a renaming 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-07 08:08:27 +00:00
GCC Administrator
51b3616138 Daily bump.
From-SVN: r234017
2016-03-07 00:16:13 +00:00