144630 Commits

Author SHA1 Message Date
Jakub Jelinek
2e981ba068 re PR ada/70017 (c52103x and c52104x test failure on s390x)
PR ada/70017
	* gcc.dg/pr70017.c (foo): Store 0 to first element of each array.

From-SVN: r233944
2016-03-03 21:52:40 +01:00
Kyrylo Tkachov
0ba3bfa2b0 [ARM] PR rtl-optimization/69904: Disallow copying/duplicating of load-exclusive operations
PR rtl-optimization/69904
	* config/arm/arm.c (arm_cannot_copy_insn_p):
	Return true for load-exclusive instructions.

	* gcc.target/arm/pr69904.c: New test.

From-SVN: r233941
2016-03-03 17:25:43 +00:00
Jakub Jelinek
97ecdb46b1 re PR target/70021 (Test miscompiled with -O3 option for -march=core-avx2.)
PR target/70021
	* tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
	argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
	the pattern no matter if it is used just by non-pattern, pattern
	or mix thereof.
	(process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
	* tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
	oprnd1 def_stmt is in pattern, don't look through it.

	* gcc.dg/vect/pr70021.c: New test.
	* gcc.target/i386/pr70021.c: New test.

From-SVN: r233940
2016-03-03 15:32:15 +01:00
Rainer Orth
bc33dc51d9 Fix passing object names to make_sunver.pl
* Makefile.am (libffi.map-sun): Properly convert
	$(libffi_la_OBJECTS) to object names.
	* Makefile.in: Regenerate.

From-SVN: r233938
2016-03-03 13:40:30 +00:00
Marek Polacek
a2a743a13a re PR middle-end/70050 (ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have vector_type in generic_simplify_162, at generic-match.c:6175)
PR middle-end/70050
	* match.pd (X % -Y): Add INTEGRAL_TYPE_P check.

	* gcc.dg/pr70050.c: New test.

From-SVN: r233937
2016-03-03 11:42:19 +00:00
Rainer Orth
fd2298e3e1 Tabify libffi/Makefile.am
* Makefile.am (libffi.map-sun): Tabify:
	* Makefile.in: Regenerate.

From-SVN: r233936
2016-03-03 10:30:25 +00:00
James Greenhalgh
fa07ecdd21 [Patch testsuite] Change xfail conditions for bb-slp-34.c
gcc/testsuite/

	* gcc.dg/vect/bb-slp-34.c: Don't XFAIL for ARM/AArch64.

From-SVN: r233935
2016-03-03 10:18:05 +00:00
Martin Liska
2350426232 Skip properly debug stmt in optimize_mask_stores (PR
PR tree-optimization/70043
	* tree-vect-loop.c (optimize_mask_stores): Move iterator to
	previous statement if we see a debug statement.
	* gfortran.dg/vect/pr70043.f90: New test.

From-SVN: r233934
2016-03-03 10:08:09 +00:00
Eric Botcazou
b7b9e1a958 * gnat.dg/specs/task1.ads: New test.
From-SVN: r233932
2016-03-03 09:56:30 +00:00
Rainer Orth
cb83ba54b5 Invoke gdb with -batch to avoid prompts
* lib/gcc-gdb-test.exp (gdb-test): Make log message match command.
	Invoke gdb with -batch.
	* lib/gcc-simulate-thread.exp (simulate-thread): Likewise.

From-SVN: r233930
2016-03-03 09:46:03 +00:00
Dominik Vogt
edcbda7e2c libitm: Introduce target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
The attached patch adds the a target specific attribute via the
new target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE to the
function begin_transaction().  S/390 uses this to set the
soft-float target attribute which is needed to fix a crash with
-m31.

As there seems to be no place in libitm to document internal macros like
USE_HTM_FASTPATH or the new macro, I've put the documentation in a
comment where the macro is used.

2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
	function attribute to disable floating point in begin_transaction() on
	S/390.
	* beginend.cc (begin_transaction): Use
	TARGET_BEGIN_TRANSACTION_ATTRIBUTE.

From-SVN: r233929
2016-03-03 09:31:57 +00:00
Richard Biener
a75f5e30cc re PR tree-optimization/55936 (Missed VRP optimization)
2016-03-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/55936
	* tree-vrp.c (compare_name_with_value): Add use_equiv_p
	parameter and guard unsafe equivalence use.
	(vrp_evaluate_conditional_warnv_with_ops): Always use
	safe equivalences but not via the quadratic compare_names
	helper.

	* gcc.dg/tree-ssa/vrp06.c: Remove XFAIL.

From-SVN: r233928
2016-03-03 09:12:53 +00:00
Michael Collison
0a67ef4c4d re PR target/70014 ([ARM] Predicate does not match constraint (*subsi3_carryin_const))
2016-03-03  Michael Collison  <michael.collison@linaro.org>

	PR target/70014
	* config/arm/arm.md (*subsi3_carryin_const): Change predicate
	for operand 1 to s_register_operand. Change predicate for operand
	2 to arm_not_immediate_operand.

From-SVN: r233927
2016-03-03 07:42:02 +00:00
Richard Henderson
5147e0e84e re PR libffi/70024 (libffi ABI change w/o SONAME bump)
PR libffi/70024

  * Makefile.am (libffi_version_script): Look in cwd for libffi.map.
  (libffi_version_dep, libffi.map-sun): Likewise.
  (libffi.map): New target.
  * libffi.map.in: Rename from libffi.map.  Add required defines,
  includes, and conditionals.

From-SVN: r233926
2016-03-02 17:40:29 -08:00
GCC Administrator
72c5cfd205 Daily bump.
From-SVN: r233925
2016-03-03 00:16:13 +00:00
Jeff Law
815f20ab25 re PR rtl-optimization/69942 (gcc.dg/ifcvt-5.c FAILs)
PR rtl-optimization/69942
	* gcc.dg/ifcvt-5.c: Use "word_mode" rather than "int" to limit the
	effects of argument promotions.

From-SVN: r233922
2016-03-02 17:11:03 -07:00
Richard Henderson
2c05525623 re PR libffi/70024 (libffi ABI change w/o SONAME bump)
PR libffi/70024

  * Makefile.am (libffi_version_script): New.
  (libffi_version_dep): New.
  (libffi_version_info): New.
  (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
  (libffi_la_DEPENDENCIES): Include libffi_version_dep.
  * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
  (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
  (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
  (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
  * configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
  * libffi.map: New file.
  * libtool-version: Increase to 5.0.0.
  * Makefile.in, configure: Rebuild.
  * man/Makefile.in, testsuite/Makefile.in: Rebuild.

From-SVN: r233921
2016-03-02 15:28:11 -08:00
Jeff Law
9d83ef7171 Fix recent ChangeLog entry
From-SVN: r233918
2016-03-02 14:56:25 -07:00
H.J. Lu
52dcb7dbeb Regenerate doc/tm.texi
* doc/tm.texi: Regenerated.

From-SVN: r233917
2016-03-02 13:46:55 -08:00
Richard Henderson
08c1904dcc re PR rtl-optimization/67145 (associativity from pseudo-reg ordering)
PR rtl-opt/67145

  * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
  simplification when all args are positive non-fixed registers.

From-SVN: r233916
2016-03-02 13:09:54 -08:00
Jakub Jelinek
82ee0cf2f7 Minor ChangeLog formatting fixes.
From-SVN: r233915
2016-03-02 21:30:48 +01:00
Manuel López-Ibáñez
bdfbd08637 target.def (lra_p): Specify that new ports should use LRA.
2016-03-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>

       * target.def(lra_p): Specify that new ports should use LRA.

From-SVN: r233914
2016-03-02 20:17:15 +00:00
Jakub Jelinek
da3d46cba8 re PR libgomp/69555 (libgomp.c++/target-6.C fails because of undefined behaviour)
PR libgomp/69555
	* gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
	gimplify_type_sizes the type they refer to.
	(omp_notice_variable): Handle reference vars to VLAs.
	* omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE reference
	to VLA decls in the second pass instead of first pass.

	* testsuite/libgomp.c++/pr69555-1.C: New test.
	* testsuite/libgomp.c++/pr69555-2.C: New test.

From-SVN: r233913
2016-03-02 20:16:14 +01:00
Jeff Law
268bc32008 re PR middle-end/69987 (internal compiler error: in verify_loop_structure, at cfgloop.c:1639)
PR tree-optimization/69987
	* gfortran.dg/pr69987.f90: Use "-w" to avoid failures when the
	target does not support -fprefetch-loop-arrays.

From-SVN: r233912
2016-03-02 11:45:26 -07:00
Max Ostapenko
26ac52dba5 elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to avoid possible crash.
libbacktrace/

2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>

	* elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
	avoid possible crash.
	(elf_add): Don't set *fileline_fn to elf_nodebug value in case of
	missing debug info anymore.

From-SVN: r233911
2016-03-02 18:32:55 +02:00
Uros Bizjak
171f7de552 bmi2-bzhi-2.c: Change to runtime test.
* gcc.target/i386/bmi2-bzhi-2.c: Change to runtime test.

From-SVN: r233910
2016-03-02 16:38:21 +01:00
Tom de Vries
640fef7f41 Handle addr_expr and component_ref in graphite-ast-to-ast
2016-03-02  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/68659
	* graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
	new_expr == NULL_TREE.
	(get_new_name): Handle ADDR_EXPR.

From-SVN: r233909
2016-03-02 15:10:34 +00:00
Bin Cheng
c790887195 Correct ChangeLog for revision 233907.
From-SVN: r233908
2016-03-02 14:16:00 +00:00
Bin Cheng
192912db8a re PR rtl-optimization/69052 (Performance regression after r229402.)
PR tree-optimization/69052
	* loop-invariant.c (canonicalize_address): New function.
	(inv_can_prop_to_addr_use): Check validity of address expression
	which is canonicalized by above function.

	gcc/testsuite/ChangeLog
	PR tree-optimization/69052
	* gcc.target/i386/pr69052.c: New test.

From-SVN: r233907
2016-03-02 14:10:56 +00:00
Alan Modra
90a7a40b65 decl alignment not respected
This patch cures a problem with ICF of read-only variables at the
intersection of -fsection-anchors, -ftree-loop-vectorize, and targets
with alignment restrictions.

What happens with the testcase is:
- "c" is referenced in a constructor, thus make_decl_rtl for "c",
- make_decl_rtl puts "c" in an anchor block (-fsection-anchors),
- anchor block contents can't move, so "c" alignment can't change by
  ipa_increase_alignment (-ftree-loop-vectorize),
- however "a" alignment can be increased,
- ICF aliases "a" to "c".
So we have a decl for "a" saying it is aligned to 128 bits, using mem
for "c" which is only 16 bit aligned.

	PR ipa/69990
gcc/
	* ipa-icf.c (sem_variable::merge): Do not merge an alias with
	larger alignment.
gcc/testsuite/
	gcc.dg/pr69990.c: New.

From-SVN: r233906
2016-03-03 00:35:21 +10:30
Jakub Jelinek
de752fb0d2 re PR c/68062 (ICE when comparing vectors)
PR c/68062
	* c-c++-common/vector-compare-4.c: Add -Wno-psabi to dg-options.

	PR middle-end/70022
	* gcc.dg/pr70022.c: Add -w -Wno-psabi to dg-options.

From-SVN: r233905
2016-03-02 14:11:21 +01:00
Jakub Jelinek
69fa742f51 re PR target/70028 (Error: operand size mismatch for `kmovw' (wrong assembly generated) with -mavx512bw -masm=intel)
PR target/70028
	* config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
	(*movhi_internal): Put mask moves from and to memory separately
	from moves from/to GPRs.

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

From-SVN: r233904
2016-03-02 14:10:36 +01:00
Richard Biener
c954de7f5c genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded GENERIC expressions in GIMPLE.
2016-03-02  Richard Biener  <rguenther@suse.de>

	* genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
	GENERIC expressions in GIMPLE.

From-SVN: r233902
2016-03-02 12:44:15 +00:00
Richard Biener
04c5ee2430 i386.c (type_natural_mode): Fix typo.
2016-03-02  Richard Biener  <rguenther@suse.de>

	* config/i386/i386.c (type_natural_mode): Fix typo.

From-SVN: r233901
2016-03-02 10:04:43 +00:00
Nick Clifton
868ae3b3a7 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
From-SVN: r233900
2016-03-02 09:53:05 +00:00
Maxim Kuvyrkov
7c65bd5682 Print markers to stderr to avoid races with sanitizer output
* c-c++-common/asan/swapcontext-test-1.c,
	* c-c++-common/tsan/thread_leak.c,
	* g++.dg/tsan/aligned_vs_unaligned_race.C,
	* g++.dg/tsan/benign_race.C,
	* g++.dg/tsan/fd_close_norace.C,
	* g++.dg/tsan/fd_close_norace2.C: Print markers to stderr to avoid
	races with sanitizer output

From-SVN: r233899
2016-03-02 09:38:09 +00:00
Richard Biener
37d9822023 re PR target/67278 (ICE: verify_gimple failed on darwin 14.5 x86_64)
2016-03-02  Richard Biener  <rguenther@suse.de>
	Uros Bizjak  <ubizjak@gmail.com>

	PR target/67278
	* config/i386/i386.c (type_natural_mode): Handle XFmode vectors.

	* gcc.dg/simd-8.c: New testcase.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r233898
2016-03-02 08:55:42 +00:00
Richard Biener
218db463e0 re PR target/67278 (ICE: verify_gimple failed on darwin 14.5 x86_64)
2016-03-02  Richard Biener  <rguenther@suse.de>

	PR middle-end/67278
	* tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.

	* gcc.dg/simd-7.c: New testcase.

From-SVN: r233897
2016-03-02 08:16:16 +00:00
Eric Botcazou
22c72158a4 * gcc.target/i386/pr70007.c: Tweak.
From-SVN: r233894
2016-03-02 07:57:17 +00:00
Dominik Vogt
22e3fa19cb S/390: Ada: Enable Stack_Check_Probes.
gcc/ada/ChangeLog

	* system-linux-s390.adsx: Enable Stack_Check_Probes.
	* system-linux-s390.ads: Likewise.

From-SVN: r233893
2016-03-02 07:50:29 +00:00
Dominik Vogt
9a790cccab S/390: Reduce accuracy of bessel_6.f90.
gcc/testsuite/ChangeLog

	* gfortran.dg/bessel_6.f90: Reduce accuracy for S/390.

From-SVN: r233892
2016-03-02 07:47:49 +00:00
Marek Polacek
bd02f00fcf re PR c/67854 (Missing diagnostic for passing bool to va_arg)
PR c/67854
	* gimplify.c (gimplify_va_arg_expr): Use expanded location for the
	"is promoted to" warning.

	* gcc.dg/pr67854.c: New test.

From-SVN: r233891
2016-03-02 07:24:19 +00:00
Jakub Jelinek
1e840f3974 re PR middle-end/70025 (Miscompilation of gc-7.4.2 on s390x starting with r227382)
PR middle-end/70025
	* gcc.dg/torture/pr70025.c: New test.

From-SVN: r233889
2016-03-02 07:58:05 +01:00
Venkataramanan Kumar
bca002411e Adjust test case in PR68621 to compile with -fpic.
2016-03-02  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        PR tree-optimization/68621
        * gcc.dg/tree-ssa/ifc-8.c: Adjust test.

From-SVN: r233888
2016-03-02 06:14:43 +00:00
DJ Delorie
d15bd5bbdb MAINTAINERS (mep): Remove myself as MeP maintainer.
* MAINTAINERS (mep): Remove myself as MeP maintainer.
* config.gcc: Deprecate mep-*.

From-SVN: r233887
2016-03-01 23:41:58 -05:00
Jason Merrill
5c969cb8ca re PR c++/70036 ([concepts] ICE with a dependent sizeof in a concept)
PR c++/70036

	* parser.c (cp_parser_requires_clause): Call
	check_for_bare_parameter_packs.

From-SVN: r233886
2016-03-01 21:55:23 -05:00
Jason Merrill
e57b697d63 * gcc/cp/call.c: Mark as C++ for emacs.
From-SVN: r233885
2016-03-01 21:47:15 -05:00
Jason Merrill
c8a66fc97b re PR c++/51489 (constexpr not working consistently)
PR c++/51489

	* constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
	the operands.

From-SVN: r233878
2016-03-01 21:32:44 -05:00
Jason Merrill
7f0e23e931 re PR c++/69995 ([C++14] Invalid result when evaluating constexpr function)
PR c++/69995

	* constexpr.c (cxx_eval_call_expression): Unshare arg.
	(cxx_eval_constant_expression) [DECL_EXPR]: Unshare init.
	[TARGET_EXPR]: Unshare init.

From-SVN: r233877
2016-03-01 21:32:38 -05:00
Vladimir Makarov
4be9717cf8 re PR middle-end/70025 (Miscompilation of gc-7.4.2 on s390x starting with r227382)
2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>

	PR middle-end/70025
	* lra-constraints.c (regno_val_use_in): New.
	(match_reload): Use it instead of regno_use_in.

From-SVN: r233876
2016-03-02 01:39:30 +00:00