Commit Graph

153149 Commits

Author SHA1 Message Date
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
Jason Merrill
5e5932dca5 PR c++/80639 - ICE with invalid PMF initialization.
PR c++/80043 - ICE with -fpermissive
	* typeck.c (convert_for_assignment): Recurse when instantiate_type
	returns without an error.

From-SVN: r249329
2017-06-16 22:33:43 -04:00
Jason Merrill
d4ddf7af75 PR c++/80465 - ICE with generic lambda with noexcept-specifier.
* lambda.c (maybe_add_lambda_conv_op): Keep processing_template_decl
	set longer for a generic lambda.

From-SVN: r249328
2017-06-16 22:33:36 -04:00
Jason Merrill
e2595c6b32 PR c++/80614 - Wrong mangling for C++17 noexcept type
* mangle.c (write_type): Put the eh spec back on the function type.

From-SVN: r249327
2017-06-16 22:33:28 -04:00
Jason Merrill
a053c1f4ee PR c++/80384 - ICE with dependent noexcept-specifier
* pt.c (dependent_type_p_r) [FUNCTION_TYPE]: Check for dependent
	noexcept-specifier.

From-SVN: r249326
2017-06-16 22:33:10 -04:00
Jason Merrill
154c2e3781 Fix array decay handling in constant expressions.
* parser.c (cp_parser_constant_expression): Check
	potential_rvalue_constant_expression after decay_conversion.
	* pt.c (convert_nontype_argument): Don't require linkage in C++17.

From-SVN: r249325
2017-06-16 22:33:01 -04:00
Jason Merrill
5aed8fcfb5 * constexpr.c (potential_constant_expression_1): Allow 'this' capture.
From-SVN: r249324
2017-06-16 22:32:53 -04:00
GCC Administrator
c4b6e29e27 Daily bump.
From-SVN: r249315
2017-06-17 00:16:21 +00:00
Jakub Jelinek
b9306aabbf re PR libstdc++/81092 (Missing symbols for new std::wstring constructors)
PR libstdc++/81092
	* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r249261
2017-06-16 16:31:58 +02:00
Jonathan Wakely
d8be51c85f Fix std::wbuffer_convert::sync()
* include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
	* testsuite/22_locale/conversions/buffer/2.cc: New.

From-SVN: r249256
2017-06-16 14:35:22 +01:00
Jonathan Wakely
38a5f81782 Backport libstdc++ doc improvements from mainline
* doc/xml/manual/appendix_contributing.xml: Link to the list of bad
	names, and link to the test docs and note higher DejaGnu version
	requirement.
	* doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
	* doc/xml/manual/mt_allocator.xml: Likewise.
	* doc/xml/manual/test.xml: Correct instructions on running tests.
	* doc/html/*: Regenerate.

From-SVN: r249250
2017-06-16 13:19:54 +01:00
Jonathan Wakely
b1a54fbcff PR libstdc++/81092 add std::wstring symbols and bump library version
PR libstdc++/81092
	* acinclude.m4: Bump libtool_VERSION.
	* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
	* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
	* config/abi/pre/gnu.ver: Add wstring constructor symbols to new
	GLIBCXX_3.4.24 version.
	* doc/xml/manual/abi.xml: Document new versions.
	* doc/html/*: Regenerate.
	* testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
	constructors to ensure required symbols are exported.
	* testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
	* testsuite/util/testsuite_abi.cc: Add new version.

From-SVN: r249248
2017-06-16 13:18:53 +01:00
Jonathan Wakely
0d6e293508 Fix missing returns in libstdc++ header and tests
* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
	return statement.
	* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
	Return void.
	* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
	Likewise.
	* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
	missing return statements.
	* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
	Return void.
	* testsuite/special_functions/14_expint/pr68397.cc: Likewise.

From-SVN: r249247
2017-06-16 13:18:44 +01:00
GCC Administrator
5b0b04750a Daily bump.
From-SVN: r249232
2017-06-16 00:16:19 +00:00
Nicolas Boulenguez
6a799a264b re PR ada/81105 (system-freebsd-x86.ads renamed but referenced by gcc/ada/gcc-interface/Makefile.in)
PR ada/81105
	* gcc-interface/Makefile.in (x86 kfreebsd): Adjust system.ads setting.
	(i[3456]86-pc-gnu): Likewise.
	(x86_64 kfreebsd): Likewise.

From-SVN: r249229
2017-06-15 22:22:18 +00:00
Eric Botcazou
da9057102c re PR rtl-optimization/80474 (ipa-cp wrongly adding LO(symbol) twice)
PR rtl-optimization/80474
	* reorg.c (update_block): Do not ignore instructions in a delay slot.

From-SVN: r249220
2017-06-15 13:25:33 +00:00
GCC Administrator
50e0759745 Daily bump.
From-SVN: r249211
2017-06-15 00:16:16 +00:00
Eric Botcazou
d03f4299d3 sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
* config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
	(MASK_FEATURES): New macro.
	* config/sparc/sparc.c (sparc_option_override): Remove the special
	handling of -mfpu and generalize it to all MASK_FEATURES switches.

From-SVN: r249190
2017-06-14 11:23:18 +00:00
Eric Botcazou
9b6d5249f7 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
From-SVN: r249184
2017-06-14 07:45:45 +00:00
GCC Administrator
5a38e4f706 Daily bump.
From-SVN: r249178
2017-06-14 00:16:13 +00:00
GCC Administrator
48aa639164 Daily bump.
From-SVN: r249141
2017-06-13 00:16:19 +00:00
David S. Miller
e45a996a2f More refinements to fixing sparc's PR target/80968.
PR target/80968
	* config/sparc/sparc.md (return expander): Emit frame blockage if
	function uses alloca.

From-SVN: r249135
2017-06-12 12:32:49 -07:00
Eric Botcazou
dd7cdec6c1 re PR ada/81070 (build failure for s-intrr.adb)
PR ada/81070
	* s-interr-hwint.adb: Reinstate.
	* gcc-interface/Makefile.in (RTEMS): Use it again.

From-SVN: r249116
2017-06-12 10:49:17 +00:00
Sebastian Huber
95abcdaa9b RTEMS: Use TLS for Ada run-time
Do not use the RTEMS-specific task variables for the Ada run-time since
they are not available in RTEMS 4.12 or later.  Use thread-local storage
instead.
    
gcc/ada
        * Makefile.in (rtems): Use TLS implementation for
        s-tpopsp.adb.
        * s-tpopsp-rtems.adb: Delete.

From-SVN: r249112
2017-06-12 07:06:40 +00:00
GCC Administrator
4288036a1c Daily bump.
From-SVN: r249109
2017-06-12 00:16:28 +00:00
GCC Administrator
8dee77ca78 Daily bump.
From-SVN: r249101
2017-06-11 00:16:30 +00:00
GCC Administrator
0bcae53848 Daily bump.
From-SVN: r249086
2017-06-10 00:16:14 +00:00
Janus Weil
d4e39c8869 backport: re PR fortran/70601 ([OOP] ICE on procedure pointer component call)
2017-06-09  Janus Weil  <janus@gcc.gnu.org>

	Backport from trunk
	PR fortran/70601
	* trans-expr.c (gfc_conv_procedure_call): Fix detection of allocatable
	function results.


2017-06-09  Janus Weil  <janus@gcc.gnu.org>

	Backport from trunk
	PR fortran/70601
	* gfortran.dg/proc_ptr_comp_50.f90: New test.

From-SVN: r249066
2017-06-09 19:45:53 +02:00
GCC Administrator
e40747b16b Daily bump.
From-SVN: r249044
2017-06-09 00:16:19 +00:00
Uros Bizjak
2d4d4a3bc5 re PR target/81015 (Bad codegen for __builtin_clz(unsigned short))
PR target/81015
	Revert:
	2016-12-14  Uros Bizjak  <ubizjak@gmail.com>

	PR target/59874
	* config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
	(*clzhi2): Ditto.

testsuite/ChangeLog:

	PR target/81015
	* gcc.target/i386/pr59874-1.c (foo): Call __builtin_ctzs.
	* gcc.target/i386/pr59874-2.c (foo): Call __builtin_clzs.
	* gcc.target/i386/pr81015.c: New test.

From-SVN: r249039
2017-06-08 21:42:59 +02:00
Jakub Jelinek
7d75cd45a7 re PR c/81006 (ICE with zero-size array and #pragma omp task depend)
PR c/81006
	* c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
	to sizetype before size_binop.

	* semantics.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
	to sizetype before size_binop.

	* c-c++-common/gomp/pr81006.c: New test.

From-SVN: r249036
2017-06-08 21:12:38 +02:00
Jakub Jelinek
d5e8341185 re PR c++/81011 (ICE with #pragma omp task and inaccessible copy-constructor)
PR c++/81011
	* cp-gimplify.c (cxx_omp_finish_clause): When changing clause
	to OMP_CLAUSE_SHARED, also clear OMP_CLAUSE_SHARED_FIRSTPRIVATE
	and OMP_CLAUSE_SHARED_READONLY flags.

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

From-SVN: r249032
2017-06-08 21:02:09 +02:00
David Edelsohn
854e6816b8 backport: dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
Backport from mainline
        2017-06-02  David Edelsohn  <dje.gcc@gmail.com>

        * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
        (dl_section_ref): New.
        (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
        On AIX, append an expression to subtract the size of the
        section length to dl_section_ref.

From-SVN: r249014
2017-06-08 09:21:46 -04:00
GCC Administrator
85f405a71a Daily bump.
From-SVN: r249002
2017-06-08 00:16:15 +00:00
Jonathan Wakely
f7ab96ef5b PR libstdc++/81002 fix std::basic_regex range constructor
PR libstdc++/81002
	* include/bits/regex_compiler.h (__compile_nfa): Add template argument
	list to specify traits type.
	* testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.

From-SVN: r248991
2017-06-07 17:50:36 +01:00
Richard Biener
ac19d70401 Backport PRs 80549, 80593, 80705, 80842, 80906
2017-06-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2017-05-02  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/80549
	* tree-cfgcleanup.c (mfb_keep_latches): New helper.
	(cleanup_tree_cfg_noloop): Create forwarders to known loop
	headers if they do not have a preheader.

	* gcc.dg/torture/pr80549.c: New testcase.

	2017-05-19  Richard Biener  <rguenther@suse.de>

	PR c++/80593
	* c-warn.c (strict_aliasing_warning): Do not warn for accesses
	to alias-set zero memory.

	* g++.dg/warn/Wstrict-aliasing-bogus-char-2.C: New testcase.
	* g++.dg/warn/Wstrict-aliasing-6.C: Adjust expected outcome.

	2017-05-26  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/80842
	* tree-ssa-ccp.c (set_lattice_value): Always meet with the old
	value.

	* gcc.dg/torture/pr80842.c: New testcase.

	2017-05-31  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/80906
	* graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
	and pass through iv_map.
	(copy_bb_and_scalar_dependences): Adjust.
	(translate_pending_phi_nodes): Likewise.
	(copy_loop_close_phi_args): Handle code-generating IVs instead
	of ICEing.

	* gcc.dg/graphite/pr80906.c: New testcase.

	2017-05-11  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/80705
	* tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
	bases are not vectorizable.

	* gcc.dg/vect/bb-slp-pr80705.c: New testcase.

From-SVN: r248970
2017-06-07 13:07:06 +00:00
Marek Polacek
2904f6ac8e re PR c/80919 (ICE: Segmentation fault with -Wall when printing address of size 0 array)
PR c/80919
	* c-format.c (matching_type_p): Return false if any of the types
	requires structural equality.

	* gcc.dg/format/pr80919.c: New test.

From-SVN: r248963
2017-06-07 11:29:34 +00:00