Commit Graph

154648 Commits

Author SHA1 Message Date
H.J. Lu 30a3702f30 i386: Don't pass -msse2avx to assembler for -mavx
With

gcc -O2 -fPIC -flto -g -c -o a.o a.c
gcc -O2 -fPIC -flto -g -mavx   -c -o b.o b.c
gcc -shared -O2 -fPIC -flto -g -o lib1.so a.o b.o

LTO correctly generates AVX for b.o and SSE for a.o.  But the GCC driver
passes -msse2avx to assembler, which encodes SSE instructions as AVX
instructions.  We shouldn't pass -msse2avx to assembler for -mavx.

	Backport from mainline
	PR target/87522
	* config/i386/gnu-user.h (ASM_SPEC): Don't pass -msse2avx to
	assembler for -mavx.
	* config/i386/gnu-user64.h (ASM_SPEC): Likewise.

From-SVN: r264867
2018-10-05 04:40:59 -07:00
GCC Administrator b75fc43bdc Daily bump.
From-SVN: r264858
2018-10-05 00:16:25 +00:00
GCC Administrator 0d5cc8dfbe Daily bump.
From-SVN: r264829
2018-10-04 00:16:33 +00:00
Uros Bizjak 6927df526d backport: i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.
Backport from mainline
	2018-09-28  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.
	(GET_SSE_REGNO): Rename from SSE_REGNO.  Update all uses for rename.

From-SVN: r264826
2018-10-03 23:49:11 +02:00
Jonathan Wakely f317c21d81 PR other/87353 fix formatting and grammar in manual
The changes to invoke.texi in r242433 left some unwanted spaces that
texi2pod.pl interprets as verbatim formatting. There are also some
grammatical errors due to the removal of references to GCJ, where the
G++ driver is referred to in the plural.

	PR other/87353
	* doc/invoke.texi (Link Options): Fix formatting and grammar.

From-SVN: r264810
2018-10-03 11:58:49 +01:00
GCC Administrator ff39d3d211 Daily bump.
From-SVN: r264802
2018-10-03 00:16:29 +00:00
GCC Administrator 9762f217fd Daily bump.
From-SVN: r264775
2018-10-02 00:16:26 +00:00
Kyrylo Tkachov a424211e58 [arm] Avoid STRD with odd register for TARGET_ARM in output_move_double
2018-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	Backport from mainline
	2018-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.c (output_move_double): Don't allow STRD instructions
	if starting source register is not even.

	Backport from mainline
	2018-07-02  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/arm/arm-soft-strd-even.c: Skip if -mfloat-abi is
	overriden.
	2018-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* gcc.target/arm/arm-soft-strd-even.c: New test.

From-SVN: r264746
2018-10-01 12:39:43 +00:00
GCC Administrator 5cca9cb822 Daily bump.
From-SVN: r264729
2018-10-01 00:16:17 +00:00
GCC Administrator 84f5c559ed Daily bump.
From-SVN: r264718
2018-09-30 00:16:12 +00:00
Jakub Jelinek 5c317226c7 re PR target/87467 (Incorrect function parameter for _mm512_abs_pd in `include/avx512fintrin.h`)
PR target/87467
	* config/i386/avx512fintrin.h (_mm512_abs_pd, _mm512_mask_abs_pd): Use
	__m512d type for __A argument rather than __m512.

	* gcc.target/i386/avx512f-abspd-1.c (SIZE): Divide by two.
	(CALC): Use double instead of float.
	(TEST): Adjust to test _mm512_abs_pd and _mm512_mask_abs_pd rather than
	_mm512_abs_ps and _mm512_mask_abs_ps.

From-SVN: r264714
2018-09-29 18:28:53 +02:00
GCC Administrator 6c7a378ee5 Daily bump.
From-SVN: r264707
2018-09-29 00:16:10 +00:00
Michael Meissner 7bc662b401 Backport pr 87033 to gcc 7
From-SVN: r264686
2018-09-28 00:32:46 +00:00
GCC Administrator 945696a491 Daily bump.
From-SVN: r264683
2018-09-28 00:16:34 +00:00
GCC Administrator 561341e1c3 Daily bump.
From-SVN: r264659
2018-09-27 00:16:45 +00:00
GCC Administrator cb40a76447 Daily bump.
From-SVN: r264590
2018-09-26 00:16:48 +00:00
GCC Administrator 659d820cb4 Daily bump.
From-SVN: r264550
2018-09-25 00:16:28 +00:00
Eric Botcazou 3bdfe954af Fix thinko
From-SVN: r264524
2018-09-24 08:15:53 +00:00
GCC Administrator 6108ede45d Daily bump.
From-SVN: r264520
2018-09-24 00:16:22 +00:00
GCC Administrator e7cd668529 Daily bump.
From-SVN: r264508
2018-09-23 00:16:10 +00:00
GCC Administrator 84b0779d82 Daily bump.
From-SVN: r264498
2018-09-22 00:16:31 +00:00
Eric Botcazou 56f9cf9142 rs6000.c (rs6000_function_ok_for_sibcall): Return false if the call takes a static chain.
* config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Return false
	if the call takes a static chain.

From-SVN: r264465
2018-09-21 10:06:25 +00:00
GCC Administrator 26a6bcbdae Daily bump.
From-SVN: r264454
2018-09-21 00:16:47 +00:00
John David Anglin 684d698f5b pa.md (atomic_storeqi): Restore deleted expander.
* config/pa/pa.md (atomic_storeqi): Restore deleted expander.
	(atomic_storehi): Likewise.
	(atomic_storesi): Likewise.
	(atomic_loaddi): Restore compare and swap exchange loop code.

From-SVN: r264435
2018-09-20 01:10:47 +00:00
GCC Administrator 0df4420185 Daily bump.
From-SVN: r264430
2018-09-20 00:16:24 +00:00
GCC Administrator cd551c0714 Daily bump.
From-SVN: r264415
2018-09-19 00:16:37 +00:00
Kyrylo Tkachov 3d13b78661 [libgfortran] Fix uninitialized variable use in fallback_access
Backport from trunk
	2018-09-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* io/unix.c (fallback_access): Avoid calling close on
	uninitialized file descriptor.

From-SVN: r264384
2018-09-18 09:02:14 +00:00
GCC Administrator 61fb3bb626 Daily bump.
From-SVN: r264378
2018-09-18 00:16:23 +00:00
GCC Administrator 0c8e9728e0 Daily bump.
From-SVN: r264353
2018-09-17 00:16:21 +00:00
GCC Administrator bed081ed0b Daily bump.
From-SVN: r264344
2018-09-16 00:16:34 +00:00
GCC Administrator 3e31fa6dad Daily bump.
From-SVN: r264339
2018-09-15 00:16:17 +00:00
GCC Administrator e0360ce2c3 Daily bump.
From-SVN: r264297
2018-09-14 00:16:36 +00:00
Paul Thomas 75eb31153c re PR fortran/87284 (Allocation of class arrays with mold results in "conditional jump or move depends on uninitialised value")
2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/87284
	* trans-expr.c (gfc_trans_class_init_assign): Access to
	to array elements of the dynamic type requires that the array
	reference be added to the class expression and not the _data
	component, unlike scalar expressions.

2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/87284
	* gfortran.dg/allocate_with_mold_2.f90: New test.

From-SVN: r264288
2018-09-13 19:46:05 +00:00
Eric Botcazou e5d5bf9962 backport: s-osinte-solaris.ads (upad64_t): New private type.
Backport from mainline
	2018-07-31  Eric Botcazou  <ebotcazou@adacore.com>

	* s-osinte-solaris.ads (upad64_t): New private type.
	(mutex_t): Use it for 'lock' and 'data' components.
	(cond_t): Likewise for 'data' and use single 'flags' component.

From-SVN: r264266
2018-09-13 10:14:39 +00:00
GCC Administrator 0fbde3fbcb Daily bump.
From-SVN: r264256
2018-09-13 00:16:11 +00:00
Segher Boessenkool b08fb37a27 Backport patch for PR86989 to 7
2018-09-12  Segher Boessenkool  <segher@kernel.crashing.org>

	Backport from trunk
	2018-08-24  Segher Boessenkool  <segher@kernel.crashing.org>

	PR target/86989
	* config/rs6000/rs6000.c (toc_relative_expr_p): Check that the base is
	the TOC register.

From-SVN: r264247
2018-09-12 20:01:11 +02:00
Andreas Krebbel c6ebc6f71b S/390: Use proper rounding mode for DFP to BFD conversions
According to IEEE 754 2008 4.3 'Rounding-direction attributes' the
rounding mode of the target format needs to be used. By not setting
the value so far we have always used the DFP rounding mode.

gcc/ChangeLog:

2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

	Backport from mainline
	2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

	* config/s390/s390.md (PFPO_RND_MODE_DFP, PFPO_RND_MODE_BFP): New
	constants.
	("trunc<BFP:mode><DFP_ALL:mode>2")
	("trunc<DFP_ALL:mode><BFP:mode>2")
	("extend<BFP:mode><DFP_ALL:mode>2")
	("extend<DFP_ALL:mode><BFP:mode>2"): Set proper rounding mode
	according to the target operand type.

gcc/testsuite/ChangeLog:

2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

	Backport from mainline
	2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

	* gcc.target/s390/dfp_to_bfp_rounding.c: New test.

From-SVN: r264236
2018-09-12 11:13:56 +00:00
GCC Administrator 23281ce8e9 Daily bump.
From-SVN: r264224
2018-09-12 00:16:35 +00:00
GCC Administrator cfa0f3ff02 Daily bump.
From-SVN: r264198
2018-09-11 00:16:25 +00:00
GCC Administrator 685323f840 Daily bump.
From-SVN: r264187
2018-09-10 00:16:29 +00:00
GCC Administrator 0d12566fae Daily bump.
From-SVN: r264174
2018-09-09 00:16:28 +00:00
GCC Administrator 92f3b07dc9 Daily bump.
From-SVN: r264165
2018-09-08 00:16:33 +00:00
Janus Weil fd0d765417 backport: re PR fortran/86116 (Ambiguous generic interface not recognised)
2018-09-07  Janus Weil  <janus@gcc.gnu.org>

	Backported from trunk
	PR fortran/86116
	* interface.c (compare_type): Remove a CLASS/TYPE check.
	(compare_type_characteristics): New function that behaves like the old
	'compare_type'.
	(gfc_check_dummy_characteristics, gfc_check_result_characteristics):
	Call 'compare_type_characteristics' instead of 'compare_type'.

2018-09-07  Janus Weil  <janus@gcc.gnu.org>

	Backported from trunk
	PR fortran/86116
	* gfortran.dg/generic_34.f90: New test case.

From-SVN: r264161
2018-09-07 19:33:15 +02:00
GCC Administrator 940a7af901 Daily bump.
From-SVN: r264153
2018-09-07 00:16:22 +00:00
GCC Administrator ccaea5e3ef Daily bump.
From-SVN: r264136
2018-09-06 00:16:31 +00:00
GCC Administrator 1f39f8887d Daily bump.
From-SVN: r264098
2018-09-05 00:16:20 +00:00
Max Filippov 6d447fc0b9 gcc: xtensa: fix NAND code in xtensa_expand_atomic
NAND is ~(a1 & a2), but xtensa_expand_atomic does ~a1 & a2.
That fixes libatomic tests atomic-op-{1,2}.

gcc/
2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>

	Backport from mainline
	2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>

	* config/xtensa/xtensa.c (xtensa_expand_atomic): Reorder AND and
	XOR operations in NAND case.

From-SVN: r264090
2018-09-04 17:59:04 +00:00
Jonathan Wakely c256655f90 Add -Waligned-new to Option Summary
* doc/invoke.texi (Option Summary): Add -Waligned-new.

From-SVN: r264082
2018-09-04 14:33:14 +01:00
GCC Administrator 5883ffeea9 Daily bump.
From-SVN: r264072
2018-09-04 00:16:36 +00:00
Tom de Vries bd3cad80c7 backport "[tail-merge] Fix side-effect test in stmt_local_def"
2018-09-03  Tom de Vries  <tdevries@suse.de>

	backport from trunk:
	2018-06-21  Tom de Vries  <tdevries@suse.de>

	PR tree-optimization/85859
	* tree-ssa-tail-merge.c (stmt_local_def): Copy gimple_is_call
	test with comment from bb_no_side_effects_p.

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

From-SVN: r264054
2018-09-03 10:04:08 +00:00