Commit Graph

153908 Commits

Author SHA1 Message Date
Vladimir Makarov
9aae1b1f15 re PR middle-end/82556 (internal compiler error in curr_insn_transform, at lra-constraints.c:4307)
2017-10-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR middle-end/82556
	* lra-constraints.c (curr_insn_transform): Use non-input operand
	instead of output one for matched reload.

2017-10-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR middle-end/82556
	* gcc.target/i386/pr82556.c: New.

From-SVN: r253863
2017-10-18 16:47:38 +00:00
GCC Administrator
184fb54d80 Daily bump.
From-SVN: r253839
2017-10-18 00:16:10 +00:00
Eric Botcazou
ec13b9b06d * gcc.dg/attr-alloc_size-11.c: UnXFAIL for visium-*-*.
From-SVN: r253832
2017-10-17 20:34:43 +00:00
Nathan Sidwell
a203c78308 [C++ PATCH 82560] missing dtor call
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg01068.html
	PR c++/82560
	* call.c (build_over_call): Don't pass tf_no_cleanup to nested
	calls.

	PR c++/82560
	* g++.dg/cpp0x/pr82560.C: New.

From-SVN: r253822
2017-10-17 17:27:11 +00:00
Jakub Jelinek
0c2ff9c396 re PR tree-optimization/82549 (ICE at -O1 and above: verify_gimple failed)
PR tree-optimization/82549
	* fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
	Formatting fixes.  Instead of calling make_bit_field_ref with negative
	bitpos return 0.

	* gcc.c-torture/compile/pr82549.c: New test.

From-SVN: r253816
2017-10-17 16:47:15 +02:00
GCC Administrator
7ea6f14bdc Daily bump.
From-SVN: r253800
2017-10-17 00:16:11 +00:00
Paul Thomas
ce229d5066 re PR fortran/52832 ([F03] ASSOCIATE construct with proc-pointer selector is rejected)
2017-10-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52832
	* match.c (gfc_match_associate): Before failing the association
	try again, allowing a proc pointer selector.

	PR fortran/80120
	PR fortran/81903
	PR fortran/82121
	* primary.c (gfc_match_varspec): Introduce 'tgt_expr', which
	points to the associate selector, if any. Go through selector
	references, after resolution for variables, to catch any full
	or section array references. If a class associate name does
	not have the same declared type as the selector, resolve the
	selector and copy the declared type to the associate name.
	Before throwing a no implicit type error, resolve all allowed
	selector expressions, and copy the resulting typespec.

	PR fortran/67543
	* resolve.c (resolve_assoc_var): Selector must cannot be the
	NULL expression and it must have a type.

	PR fortran/78152
	* resolve.c (resolve_symbol): Allow associate names to be
	coarrays.

2017-10-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/78512
	* gfortran.dg/associate_9.f03 : Remove XFAIL.
	* gfortran.dg/associate_26.f90 : New test.

	PR fortran/80120
	* gfortran.dg/associate_27.f90 : New test.

	PR fortran/81903
	* gfortran.dg/associate_28.f90 : New test.

	PR fortran/82121
	* gfortran.dg/associate_29.f90 : New test.

	PR fortran/67543
	* gfortran.dg/associate_30.f90 : New test.

From-SVN: r253794
2017-10-16 19:44:04 +00:00
Paul Thomas
ac7b259d92 re PR fortran/81048 (incorrect derived type initialization)
2017-10-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/81048
	* resolve.c (resolve_symbol): Ensure that derived type array
	results get default initialization.

2017-10-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/81048
	* gfortran.dg/derived_init_4.f90 : New test.

From-SVN: r253793
2017-10-16 18:48:56 +00:00
GCC Administrator
0e5c063608 Daily bump.
From-SVN: r253774
2017-10-16 00:16:09 +00:00
Ian Lance Taylor
149331ec5f re PR go/82559 (libgo bootstrap broken on at least alpha, s390x)
PR go/82559
Backport from mainline:
    https://golang.org/cl/46712
    https://golang.org/cl/46839

From-SVN: r253770
2017-10-15 19:45:33 +00:00
GCC Administrator
e6e519fb4f Daily bump.
From-SVN: r253766
2017-10-15 00:16:11 +00:00
GCC Administrator
8a8ca5ed30 Daily bump.
From-SVN: r253746
2017-10-14 00:16:11 +00:00
Jakub Jelinek
7aaf7ebd9b re PR target/82274 (__builtin_mul_overflow fails to detect overflow for int64_t when compiled with -m32)
PR target/82274
	* internal-fn.c (expand_mul_overflow): If both operands have
	the same highpart of -1 or 0 and the topmost bit of lowpart
	is different, overflow is if res <= 0 rather than res < 0.

	* libgcc2.c (__mulvDI3): If both operands have
	the same highpart of -1 and the topmost bit of lowpart is 0,
	multiplication overflows even if both lowparts are 0.

	* gcc.dg/pr82274-1.c: New test.
	* gcc.dg/pr82274-2.c: New test.

From-SVN: r253735
2017-10-13 19:26:28 +02:00
Jakub Jelinek
f35018157d re PR target/82524 (expensive-optimizations produces wrong results)
PR target/82524
	* config/i386/i386.md (addqi_ext_1, andqi_ext_1,
	*andqi_ext_1_cc, *<code>qi_ext_1, *xorqi_ext_1_cc): Change
	=Q constraints to +Q and into insn condition add check
	that operands[0] and operands[1] are equal.
	(*addqi_ext_2, *andqi_ext_2, *<code>qi_ext_2): Change
	=Q constraints to +Q and into insn condition add check
	that operands[0] is equal to either operands[1] or operands[2].

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

From-SVN: r253711
2017-10-13 09:39:42 +02:00
GCC Administrator
49edf1686f Daily bump.
From-SVN: r253703
2017-10-13 00:16:09 +00:00
GCC Administrator
975298370a Daily bump.
From-SVN: r253669
2017-10-12 00:16:08 +00:00
GCC Administrator
8a6d0ecfa1 Daily bump.
From-SVN: r253626
2017-10-11 00:16:09 +00:00
Paolo Carlini
d2113c13ef elf.c: Fix typo in the last commit, SFH_COMPRESSED vs SHF_COMPRESSED.
2017-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

	* elf.c: Fix typo in the last commit, SFH_COMPRESSED vs SHF_COMPRESSED.

From-SVN: r253607
2017-10-10 19:58:49 +00:00
Andreas Tobler
0065f0d500 backport: config.gcc: (armv7*-*-freebsd*): New target.
2017-10-10  Andreas Tobler  <andreast@gcc.gnu.org>

    Backported from mainline r253602
    2017-10-10  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.gcc: (armv7*-*-freebsd*): New target.
    (armv6*-*-freebsd*): Remove obsolete TARGET_FREEBSD_ARMv6 define.

From-SVN: r253603
2017-10-10 20:43:47 +02:00
Ian Lance Taylor
4b8401f477 re PR go/80914 (gcc-go binaries don't run)
PR go/80914
	* elf.c (SHF_COMPRESSED): Define.
	(elf_add): Ignore debug sections with SHF_COMPRESSED set.

From-SVN: r253594
2017-10-10 16:55:04 +00:00
GCC Administrator
0bf35f65aa Daily bump.
From-SVN: r253573
2017-10-10 00:16:19 +00:00
James Cowgill
9a3a146277 Backport correct Go MIPS architecture names from trunk.
Brings in the following patches:
    https://golang.org/cl/46150
    https://golang.org/cl/46151
    https://golang.org/cl/46152
    https://golang.org/cl/46153
    https://golang.org/cl/46154
    https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01777.html

	* go.test/go-test.exp (go-set-goarch): Update MIPS architecture names.

From-SVN: r253551
2017-10-09 16:59:38 +00:00
GCC Administrator
4bd0f26039 Daily bump.
From-SVN: r253535
2017-10-09 00:16:14 +00:00
GCC Administrator
abfe8859e2 Daily bump.
From-SVN: r253518
2017-10-08 00:16:13 +00:00
GCC Administrator
335a0a2964 Daily bump.
From-SVN: r253505
2017-10-07 00:16:16 +00:00
Jakub Jelinek
a45258d20b re PR c++/82299 (-Wuseless-cast errors on typed enums used in member data initializers in c++1z)
PR c++/82299
	* decl.c (reshape_init): Suppress warn_useless_cast for direct enum
	init.
	* typeck.c (convert_for_assignment): Likewise.

	* g++.dg/cpp0x/pr82299.C: New test.

From-SVN: r253499
2017-10-06 20:00:54 +02:00
Christophe Lyon
1e28109018 [AArch64] Backport to gcc-7 PR71727 fix -mstrict-align
2017-10-06  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/
	Backport from mainline r253242.
	2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>

	PR target/71727
	* config/aarch64/aarch64.c
	(aarch64_builtin_support_vector_misalignment): Always return false
	when misalignment is unknown.

	gcc/testsuite/
	Backport from mainline r253251.
	2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>

	PR target/71727
	* gcc.target/aarch64/pr71727-2.c: New test.

From-SVN: r253477
2017-10-06 09:38:51 +02:00
GCC Administrator
32fe08bb83 Daily bump.
From-SVN: r253471
2017-10-06 00:16:20 +00:00
Jason Merrill
74a2b1d572 * call.c (convert_arg_to_ellipsis): Use the result of force_rvalue.
From-SVN: r253466
2017-10-05 17:43:01 -04:00
Eric Botcazou
f64766fde8 re PR ada/82393 (Compilation error on cygwin64)
PR ada/82393
	* mingw32.h (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Delete.
	* sysdep.c (__gnat_set_mode ): Use DJGPP version for Cygwin.

From-SVN: r253455
2017-10-05 16:32:40 +00:00
H.J. Lu
43ea71b175 Add sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC
Since size of "void *" is 4 bytes for x32, check if __x86_64__ is defined
by $CC, instead of

if test x$ac_cv_sizeof_void_p = x8; then

to decide wether sanitizer_linux_x86_64.lo should be used.

	Backported from mainline
	PR sanitizer/82379
	* configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
	to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.

From-SVN: r253442
2017-10-05 03:45:04 -07:00
GCC Administrator
8f88128566 Daily bump.
From-SVN: r253435
2017-10-05 00:16:14 +00:00
Jason Merrill
3eb1e9c89d PR c++/82406 - C++17 error with noexcept function type
PR c++/70029 - ICE with ref-qualifier and -flto
gcc/
	* langhooks.h (struct lang_hooks_for_types): Add
	copy_lang_qualifiers.
	* langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
	NULL.
	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
	* tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
	(build_type_attribute_qual_variant): Use copy_lang_qualifiers.
gcc/cp/
	* tree.c (cxx_copy_lang_qualifiers): New.
	* cp-tree.h: Declare it.
	* cp-objcp-common.h: Define LANG_HOOKS_COPY_LANG_QUALIFIERS.

From-SVN: r253424
2017-10-04 13:47:08 -04:00
Jason Merrill
3d2be6b44d PR c++/81525 - broken handling of auto in generic lambda.
* pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

From-SVN: r253415
2017-10-04 11:38:24 -04:00
GCC Administrator
b33d945ba8 Daily bump.
From-SVN: r253392
2017-10-04 00:16:17 +00:00
Thomas Koenig
0efe5ea92c backport: re PR fortran/80118 (ICE with zero size parameter array)
2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
	    Steven G. Kargl  <kargl@gcc.gnu.org>

	Backport from trunk
	PR fortran/80118
	* expr.c (gfc_get_full_arrayspec_from_expr): If there is
	no symtree, set array spec to NULL.

2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
	    Steven G. Kargl  <kargl@gcc.gnu.org>

	Backport from trunk
	PR fortran/80118
	* gfortran.dg/zero_sized_7.f90: New test.



Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>

From-SVN: r253383
2017-10-03 15:50:45 +00:00
GCC Administrator
ede8827db7 Daily bump.
From-SVN: r253375
2017-10-03 00:16:13 +00:00
Ian Lance Taylor
2ddbf32099 libgo: update to Go 1.8.3 release
From-SVN: r253367
2017-10-02 21:05:27 +00:00
Bill Schmidt
21cc5b7750 backport: re PR tree-optimization/82337 (ICE: SSA corruption at tree-ssa-coalesce.c:1010)
[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	Backport from mainline
	2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/82337
	* gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
	phi definition if the PHI result appears in an abnormal PHI.
	(find_basis_for_base_expr): Don't record a basis if the LHS of the
	basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	Backport from mainline
	2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/82337
	* gcc.c-torture/compile/pr82337.c: New file.

From-SVN: r253359
2017-10-02 18:07:45 +00:00
Thomas Schwinge
c30b6475f4 Handle libbacktrace in contrib/gcc_update
contrib/
	* gcc_update (files_and_dependencies): Handle libbacktrace.

trunk r253346

From-SVN: r253347
2017-10-02 13:58:11 +02:00
GCC Administrator
087d0805fb Daily bump.
From-SVN: r253333
2017-10-02 00:16:15 +00:00
GCC Administrator
1fd7cad65d Daily bump.
From-SVN: r253326
2017-10-01 00:16:15 +00:00
Jakub Jelinek
0624feee0b i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in REG_EQUAL notes.
* config/i386/i386.c (ix86_split_idivmod): Use mode instead of
	always SImode for DIV and MOD in REG_EQUAL notes.

From-SVN: r253320
2017-09-30 10:27:27 +02:00
Jakub Jelinek
def8dcdb1f backport: re PR c/82340 (volatile ignored in compound literal)
Backported from mainline
	2017-09-29  Jakub Jelinek  <jakub@redhat.com>

	PR c/82340
	* c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
	instead of trying to set just TREE_READONLY manually.

	* gcc.dg/tree-ssa/pr82340.c: New test.

From-SVN: r253319
2017-09-30 10:26:32 +02:00
Jakub Jelinek
4eb003869d backport: re PR c++/82159 (ICE: in assign_temp, at function.c:961)
Backported from mainline
	2017-09-27  Jakub Jelinek  <jakub@redhat.com>

	PR c++/82159
	* gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
	lhs from calls if the lhs has addressable type.

	* g++.dg/opt/pr82159.C: New test.

From-SVN: r253318
2017-09-30 10:25:02 +02:00
GCC Administrator
f11eb23ea3 Daily bump.
From-SVN: r253314
2017-09-30 00:16:14 +00:00
Krister Walfridsson
ac5cb7c9a0 backport: re PR target/77480 (netbsd specfile will not link against libc when building -shared (+patch))
2017-09-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

	Backport from mainline
	2017-06-29  Maya Rashish  <coypu@sdf.org>

	PR target/77480
	* config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
	objects.

From-SVN: r253309
2017-09-29 21:34:00 +00:00
Krister Walfridsson
4ffa3da132 backport: re PR target/39570 (cabs and cabsf are named differently on NetBSD 5)
2017-09-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

	Backport from mainline
	2017-09-26  Krister Walfridsson  <krister.walfridsson@gmail.com>

	PR target/39570
	* gcc/config/netbsd-protos.h: New file.
	* gcc/config/netbsd.c: New file.
	* gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
	* gcc/config/t-netbsd: New file.
	* gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
	(tmake_file) Add t-netbsd.
	(extra_objs) Add netbsd.o.

From-SVN: r253283
2017-09-29 09:38:08 +00:00
GCC Administrator
e3929263bc Daily bump.
From-SVN: r253273
2017-09-29 00:16:16 +00:00
Krister Walfridsson
98c9c18131 backport: re PR target/80600 (hidden symbol `__cpu_model' is referenced by DSO)
gcc/ChangeLog:

	Backport from mainline
	2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>

	PR target/80600
	* config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.

libgcc/ChangeLog:

	Backport from mainline
	2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>

	PR target/80600
	* config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.

From-SVN: r253263
2017-09-28 19:17:51 +00:00