Commit Graph

153185 Commits

Author SHA1 Message Date
Eric Botcazou
ac6a451c19 os-unix-sysdep.c (__cilkrts_getticks): Adjust preprocessor test for SPARC/Linux.
* runtime/config/sparc/os-unix-sysdep.c (__cilkrts_getticks): Adjust
	preprocessor test for SPARC/Linux.
	* runtime/jmpbuf.h (CILK_[UN]ADJUST_SP): Likewise.

From-SVN: r249602
2017-06-23 17:34:21 +00:00
Ian Lance Taylor
5105d5588d os: align siginfo argument to waitid
Backport https://golang.org/cl/46511 from gc trunk, as it may fix a
    bug reported for gccgo running on MIPS
    (https://groups.google.com/d/msg/golang-dev/sDg-t1_DPw0/-AJmLxgPBQAJ).
    
    Reviewed-on: https://go-review.googlesource.com/46571

From-SVN: r249600
2017-06-23 17:12:32 +00:00
Thomas Preud'homme
4e85f2146a [ARM] Rename FPSCR builtins to correct names
2017-06-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/
    * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
    __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
    __builtin_arm_stfscr to __builtin_arm_set_fpscr.

    gcc/testsuite/
    * gcc.target/arm/fpscr.c: New file.

From-SVN: r249596
2017-06-23 16:08:40 +00:00
Jonathan Wakely
13e96c875c PR c++/81187 fix -Wnoexcept-type entry in manual
PR c++/81187
	* doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
	-Wnoexcept.

From-SVN: r249586
2017-06-23 11:56:04 +01:00
GCC Administrator
662a3c2b4d Daily bump.
From-SVN: r249582
2017-06-23 00:16:15 +00:00
Martin Liska
ccefbdd7ef Backport r249368
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-06-19  Martin Liska  <mliska@suse.cz>

	PR sanitizer/80879
	* gimplify.c (gimplify_switch_expr):
	Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-06-19  Martin Liska  <mliska@suse.cz>

	PR sanitizer/80879
	* gcc.dg/asan/use-after-scope-switch-4.c: New test.

From-SVN: r249551
2017-06-22 11:41:09 +00:00
Martin Liska
8540410965 Backport r248729
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-31  Martin Liska  <mliska@suse.cz>

	PR target/79155
	* config/i386/cpuid.h: Fix typo in a comment in cpuid.h.

From-SVN: r249550
2017-06-22 11:40:43 +00:00
Martin Liska
074bec2a33 Backport r248647
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-30  Martin Liska  <mliska@suse.cz>

	PR other/80909
	* auto-profile.c (get_function_decl_from_block): Fix
	parenthesis.

From-SVN: r249549
2017-06-22 11:40:15 +00:00
Martin Liska
40fbc3ff0c Backport r248489
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-26  Martin Liska  <mliska@suse.cz>

	PR ipa/80663
	* params.def: Bound partial-inlining-entry-probability param.
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-26  Martin Liska  <mliska@suse.cz>

	PR ipa/80663
	* g++.dg/ipa/pr80212.C: Remove the test as it does not longer
	split at the problematic spot.
	* gcc.dg/ipa/pr48195.c: Change 101 to 100 as 101 is no longer
	a valid value of the param.

From-SVN: r249548
2017-06-22 11:40:00 +00:00
Martin Liska
294842cb2e Backport r248089
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-16  Martin Liska  <mliska@suse.cz>

	PR ipa/79849.
	PR ipa/79850.
	* ipa-devirt.c (warn_types_mismatch): Fix typo.
	(odr_types_equivalent_p): Likewise.

From-SVN: r249547
2017-06-22 11:39:26 +00:00
Martin Liska
1c5214501b Backport r248060
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-15  Martin Liska  <mliska@suse.cz>

	PR driver/31468
	* gcc.c (process_command): Do not allow empty argument of -o option.

From-SVN: r249546
2017-06-22 11:38:56 +00:00
Martin Liska
f98d120b10 Backport r247507
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-02  Martin Liska  <mliska@suse.cz>

	* doc/gcov.texi: Add missing preposition.
	* gcov.c (function_info::function_info): Properly fill up
	all member variables.

From-SVN: r249545
2017-06-22 11:38:40 +00:00
Martin Liska
c7da80177d Backport r247485
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-05-02  Martin Liska  <mliska@suse.cz>

	PR other/80589
	* common.opt: Fix typo.
	* doc/invoke.texi: Likewise.

From-SVN: r249544
2017-06-22 11:38:22 +00:00
Martin Liska
5b8ea22b86 Backport r247377
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-04-28  Martin Liska  <mliska@suse.cz>

	* doc/gcov.texi: Enhance documentation of gcov.

From-SVN: r249543
2017-06-22 11:37:57 +00:00
Martin Liska
7b11e21d5f Backport r247376
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-04-28  Martin Liska  <mliska@suse.cz>

	* doc/gcov.texi: Sort options in alphabetic order.
	* doc/gcov-dump.texi: Likewise.
	* doc/gcov-tool.texi: Likewise.
	* gcov.c (print_usage): Likewise.
	* gcov-dump.c (print_usage): Likewise.
	* gcov-tool.c (print_merge_usage_message): Likewise.
	(print_rewrite_usage_message): Likewise.
	(print_overlap_usage_message): Likewise.

From-SVN: r249542
2017-06-22 11:37:38 +00:00
Martin Liska
2f5b8b6d6f Backport r247375
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-04-28  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/53915
	* gcov.c (format_gcov): Print 'NAN %' when top > bottom.

From-SVN: r249541
2017-06-22 11:37:13 +00:00
Martin Liska
ed4635ea72 Backport r247371
2017-06-22  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-04-28  Martin Liska  <mliska@suse.cz>

	PR driver/56469
	* coverage.c (coverage_remove_note_file): New function.
	* coverage.h: Declare the function.
	* toplev.c (finalize): Clean if an error has been seen.

From-SVN: r249540
2017-06-22 11:36:56 +00:00
GCC Administrator
4931d01ed6 Daily bump.
From-SVN: r249491
2017-06-22 00:16:17 +00:00
Michael Meissner
967348bc04 backport: re PR target/80510 (Optimize Power7/power8 Altivec load/stores)
2017-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Back port from mainline
	PR target/80510
	* gcc.target/powerpc/pr80510-1.c: Restrict test to 64-bit until
	32-bit support is added.  Change ITYPE size to 64-bit integer.
	* gcc.target/powerpc/pr80510-2.c: Likewise.

From-SVN: r249488
2017-06-21 22:51:15 +00:00
Jakub Jelinek
ceccf94fd2 re PR target/81151 (-Wmaybe-uninitialized in insn-emit.c)
PR target/81151
	* config/i386/sse.md (round<mode>2): Renumber match_dup and
	operands indexes to avoid gap between operands and match_dups.

From-SVN: r249484
2017-06-22 00:23:16 +02:00
Jakub Jelinek
54a390bed7 re PR c++/81154 (OpenMP with shared variable in a template class crash)
PR c++/81154
	* semantics.c (handle_omp_array_sections_1, finish_omp_clauses):
	Complain about t not being a variable if t is OVERLOAD even
	when processing_template_decl.

	* g++.dg/gomp/pr81154.C: New test.

From-SVN: r249483
2017-06-22 00:22:05 +02:00
Jakub Jelinek
8887fa1078 re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl, at gimplify.c:2584)
PR c++/81130
	* gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
	with ctors/dtors if GOVD_SHARED is set.

	* testsuite/libgomp.c++/pr81130.C: New test.

From-SVN: r249482
2017-06-22 00:19:38 +02:00
Jakub Jelinek
67d4a7232c backport: re PR target/81121 (ICE: in extract_insn, at recog.c:2311)
Backported from mainline
	2017-06-20  Jakub Jelinek  <jakub@redhat.com>

	PR target/81121
	* config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
	splitter): Require TARGET_SSE2 in the condition.

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

From-SVN: r249481
2017-06-22 00:18:34 +02:00
Jakub Jelinek
34bec96670 backport: re PR sanitizer/81125 (-fsanitize=undefined ICE)
Backported from mainline
	2017-06-20  Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/81125
	* ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
	by removing enum keyword.
	(ubsan_type_descriptor): Likewise.  Formatting fix.

	2017-06-19  Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/81125
	* ubsan.h (enum ubsan_encode_value_phase): New.
	(ubsan_encode_value): Change second argument to
	enum ubsan_encode_value_phase with default value of
	UBSAN_ENCODE_VALUE_GENERIC.
	* ubsan.c (ubsan_encode_value): Change second argument to
	enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
	adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
	create_tmp_var_raw instead of create_tmp_var and use a
	TARGET_EXPR.
	(ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
	instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
	ubsan_encode_value callers.

	PR sanitizer/81111
	* ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
	use create_tmp_var_raw instead of create_tmp_var, mark it addressable
	just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.

	PR sanitizer/81125
	* g++.dg/ubsan/pr81125.C: New test.

	PR sanitizer/81111
	* g++.dg/ubsan/pr81111.C: New test.

From-SVN: r249480
2017-06-22 00:17:49 +02:00
Jakub Jelinek
32047dc9b8 backport: re PR sanitizer/80973 (ICE with lambda and -fsanitize=undefined)
Backported from mainline
	2017-06-13  Jakub Jelinek  <jakub@redhat.com>

	PR c++/80973
	* cp-gimplify.c (cp_genericize_r): Don't instrument MEM_REF second
	argument even if it has REFERENCE_TYPE.

	* g++.dg/ubsan/pr80973.C: New test.

From-SVN: r249479
2017-06-22 00:15:55 +02:00
Jakub Jelinek
6bf3d75c40 backport: re PR c++/80984 (ICE with label/variable ambiguity)
Backported from mainline
	2017-06-13  Jakub Jelinek  <jakub@redhat.com>

	PR c++/80984
	* cp-gimplify.c (cp_genericize): Only look for VAR_DECLs in
	BLOCK_VARS (outer) chain.
	(cxx_omp_const_qual_no_mutable): Likewise.

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

From-SVN: r249478
2017-06-22 00:14:23 +02:00
Ville Voutilainen
dedf5c8523 PR libstdc++/80675, PR libstdc++/80940
Backport from mainline
2017-06-21  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/80675
PR libstdc++/80940
* include/std/istream:
(__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
(__do_is_convertible_to_basic_istream_impl): Likewise.
(__is_convertible_to_basic_istream_impl): Likewise.
(__is_convertible_to_basic_istream): Use the new base.
(__rvalue_istream_type): New.
(operator>>(_Istream&&, _Tp&&)): Use the new helper alias
for the SFINAE check, convert to the helper alias type before
doing the actual extraction.
* include/std/ostream:
(__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
(__do_is_convertible_to_basic_ostream_impl): Likewise.
(__is_convertible_to_basic_ostream_impl): Likewise.
(__is_convertible_to_basic_ostream): Use the new base.
(__rvalue_ostream_type): New.
(operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
for the SFINAE check, convert to the helper alias type before
doing the actual insertion.
* testsuite/27_io/rvalue_streams-2.cc: Add new tests.

From-SVN: r249471
2017-06-22 00:09:46 +03:00
Uros Bizjak
50ae657ea5 baseline_symbols.txt: Update.
* config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r249456
2017-06-21 17:17:28 +02:00
Jonathan Wakely
08c2c9a7ab PR libstdc++/81092 Regenerate configure for libtool_VERSION change
PR libstdc++/81092
	* configure: Regenerate.

From-SVN: r249439
2017-06-21 09:55:52 +01:00
GCC Administrator
2a22642860 Daily bump.
From-SVN: r249431
2017-06-21 00:16:26 +00:00
Jason Merrill
fc6f394ab7 PR c++/80972 - C++17 ICE with attribute packed.
* call.c (build_over_call): Allow a TARGET_EXPR from reference
	binding.

From-SVN: r249421
2017-06-20 12:47:58 -04:00
James Greenhalgh
2cbfe19487 Backport: [Patch AArch64 obvious] Fix expected string for fp16 extensions
* config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
	feature string.

From-SVN: r249413
2017-06-20 13:47:03 +00:00
Andreas Schwab
a7f7101502 re PR target/80970 (internal compiler error in find_reloads, at reload.c:4077)
PR target/80970
* config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
instead of "+d".

From-SVN: r249402
2017-06-20 10:27:32 +00:00
GCC Administrator
655d472f96 Daily bump.
From-SVN: r249393
2017-06-20 00:16:25 +00:00
Jason Merrill
d9710c5772 PR c++/80562 - ICE with constexpr if.
* semantics.c (finish_if_stmt_cond): Call
	instantiate_non_dependent_expr.

From-SVN: r249389
2017-06-19 16:56:08 -04:00
Jason Merrill
5bc2a4df8a PR c++/80829 - ICE with constexpr copy of base subobject.
* constexpr.c (clear_no_implicit_zero): New.
	(cxx_eval_call_expression): Call it.

From-SVN: r249388
2017-06-19 16:56:02 -04:00
Jason Merrill
630825e204 PR c++/81073 - constexpr and static var in statement-expression.
* constexpr.c (cxx_eval_constant_expression) [DECL_EXPR]: Check
	potential_constant_expression.

From-SVN: r249383
2017-06-19 14:20:48 -04:00
James Greenhalgh
b1eff1fcd6 Backport: [Patch ARM] Fix PR71778
gcc/

	PR target/71778
	* config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
	if given a non-constant argument for an intrinsic which requires a
	constant.

gcc/testsuite/

	PR target/71778
	* gcc.target/arm/pr71778.c: New.

From-SVN: r249379
2017-06-19 16:58:03 +00:00
Alexander Monakov
0f6691118a doc: update x86 -mcx16 option description
* doc/invoke.texi (mcx16): Rewrite.

From-SVN: r249377
2017-06-19 19:08:52 +03:00
Rainer Orth
355a0a7911 Update Solaris baselines for GCC 7.2 (PR libstdc++/81092)
* config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
	* config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
	* config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
	* config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
	Likewise.
	* config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
	* config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
	Likewise.

From-SVN: r249363
2017-06-19 10:12:07 +00:00
GCC Administrator
c76b9f519e Daily bump.
From-SVN: r249355
2017-06-19 00:16:23 +00:00
H.J. Lu
ff14bc27a7 x32: Update baseline_symbols.txt
PR libstdc++/81092
	* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.

From-SVN: r249351
2017-06-18 12:00:49 -07:00
Jason Merrill
7cb25c3b53 PR c++/60063 - -Wunused-local-typedefs and templates.
* decl2.c (is_late_template_attribute): Return false for "used".

From-SVN: r249346
2017-06-18 00:54:37 -04:00
Jason Merrill
533b0f5576 PR c++/70844 - -Wuseless-cast and inheriting constructor.
* method.c (forward_parm): Suppress warn_useless_cast.

From-SVN: r249345
2017-06-18 00:28:03 -04:00
GCC Administrator
23abfeb281 Daily bump.
From-SVN: r249342
2017-06-18 00:16:32 +00:00
Jason Merrill
006879f2da fix ChangeLog
From-SVN: r249335
2017-06-16 22:49:22 -04:00
Jason Merrill
05b1510406 PR c++/81045 - Wrong type-dependence with auto return type.
* pt.c (type_dependent_expression_p): An undeduced auto outside the
	template isn't dependent.
	* call.c (build_over_call): Instantiate undeduced auto even in a
	template.

From-SVN: r249333
2017-06-16 22:34:15 -04:00
Jason Merrill
2fa1a2d996 PR c++/81102 - Wrong error with partial specialization.
* pt.c (unify) [TEMPLATE_PARM_INDEX]: Strip reference when comparing
	types.  Do type deduction later.

From-SVN: r249332
2017-06-16 22:34:08 -04:00
Jason Merrill
9773d53aa3 PR c++/80174 - ICE with partial specialization of member template.
PR c++/71747
	* pt.c (get_partial_spec_bindings): Only coerce innermost args.

From-SVN: r249331
2017-06-16 22:34:01 -04:00
Jason Merrill
4f3d690c9b PR c++/80831 - ICE with -fsyntax-only.
* decl2.c (c_parse_final_cleanups): Use cgraph_node::get_create.

From-SVN: r249330
2017-06-16 22:33:51 -04:00