1. 13 Nov, 2015 40 commits
    • More fine-grained autoconf checks for C99 library · 23c64853
      2015-11-13  Jennifer Yao  <jenny.hyphen.fa@gmail.com>
      	    Jonathan Wakely  <jwakely@redhat.com>
      
      	PR libstdc++/58393
      	PR libstdc++/61580
      	* acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
      	-std=c++11 as well as -std=c++98, and define separate macros for each.
      	Cache the results of checking for complex math and wide character
      	functions. Reformat for readability.
      	* config.h.in: Regenerate.
      	* include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
      	either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
      	language standard in use.
      	* config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
      	* config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
      	* config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
      	* config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
      	_GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
      	* configure: Regenerate.
      	* include/bits/basic_string.h: Make numeric conversion functions
      	depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
      	_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
      	* include/ext/vstring.h: Likewise.
      	* include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
      	Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
      	* include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
      	Likewise.
      	* include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_MATH.
      	* include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_WCHAR.
      	* include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDIO.
      	* include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDLIB.
      	* include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_WCHAR.
      	* include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDIO.
      	* include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDLIB.
      	* include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_WCHAR.
      	* include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDIO.
      	* include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDLIB.
      	* include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_WCHAR.
      	* include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDLIB.
      	* src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
      	Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
      	* testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
      	* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
      	(test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stof.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stoi.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stol.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stold.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stoll.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stoul.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	stoull.cc: Likewise.
      	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
      	to_wstring.cc: Likewise.
      	* testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
      	* testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
      	* testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
      	Change preprocessor #if conditional so that it uses
      	_GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
      	_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
      	* testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
      	* testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
      	* testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
      	* testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
      	* testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
      	_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
      	* testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
      	_GLIBCXX_USE_C99_STDIO.
      
      Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
      
      From-SVN: r230324
      Jennifer Yao committed
    • PR68264: Use unordered comparisons for tree-call-cdce.c · a054560d
      As reported in PR 68264, tree-call-cdce.c should be using unordered
      comparisons for the range checks, in order to avoid raising FE_INVALID
      for quiet NaNs.
      
      Tested on x86_64-linux-gnu and aarch64-linux-gnu.  The test failed on
      aarch64-linux-gnu before the patch, but it didn't on x86_64-linux-gnu
      because it used unordered comparisons for the previous ordered tree codes.
      
      gcc/
      	PR tree-optimization/68264
      	* tree-call-cdce.c (gen_one_condition): Update commentary.
      	(gen_conditions_for_pow_int_base): Invert the sense of the tests
      	passed to gen_one_condition.
      	(gen_conditions_for_domain): Likewise.  Use unordered comparisons.
      	(shrink_wrap_one_built_in_call): Invert the sense of the tests,
      	using EDGE_FALSE_VALUE for edges to the call block and
      	EDGE_TRUE_VALUE for the others.
      
      gcc/testsuite/
      	PR tree-optimization/68264
      	* gcc.dg/torture/pr68264.c: New test.
      
      From-SVN: r230323
      Richard Sandiford committed
    • re PR c/68320 (internal compiler error: in declspecs_add_type) · ec8b536f
      	PR c/68320
      	* c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
      
      	* gcc.dg/pr68320.c: New test.
      
      From-SVN: r230322
      Marek Polacek committed
    • gimplify.c (oacc_default_clause): Use inform for enclosing scope. · 20e8b68f
      	gcc/
      	* gimplify.c (oacc_default_clause): Use inform for enclosing scope.
      
      	gcc/testsuite/
      	* c-c++-common/goacc/data-default-1.c: Correct expected
      
      From-SVN: r230321
      Nathan Sidwell committed
    • gen-pass-instances.awk: Rename prefix_len var to len_of_prefix in handle_line · 77f9c814
      2015-11-13  Tom de Vries  <tom@codesourcery.com>
      
      	* gen-pass-instances.awk (handle_line): Rename prefix_len var to
      	len_of_prefix.
      
      From-SVN: r230320
      Tom de Vries committed
    • gen-pass-instances.awk: Add args_str var in handle_line · 6275791a
      2015-11-13  Tom de Vries  <tom@codesourcery.com>
      
      	* gen-pass-instances.awk (handle_line): Add args_str variable.
      
      From-SVN: r230319
      Tom de Vries committed
    • [multiple changes] · 9ba9f4c0
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_attr.adb: Minor reformatting.
      
      2015-11-13  Pascal Obry  <obry@adacore.com>
      
      	* adaint.c: Ensure that it is possible to get killed process
      	status on Windows.
      
      From-SVN: r230318
      Arnaud Charlet committed
    • Updaate documentation. · e4779ba4
      From-SVN: r230317
      Arnaud Charlet committed
    • [multiple changes] · 90b510e4
      2015-11-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sigtramp-ios.c, init.c: Minor cosmetic tweaks.
      
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* s-gloloc.adb, g-debpoo.adb: Minor reformatting.
      
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Iterator_Specification): Improve error
      	message for the case the iterable name (array or container)
      	is a component that depends on a discriminant.
      
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Indicate_Name_And_Type): If the analysis of
      	one interpretation succeeds, set type of name in call, for
      	completeness.
      	(Try_Container_Indexing): If there are multiple indexing
      	functions, collect possible interpretations that are compatible
      	with given parameters, and add implicit dereference types when
      	present.
      	* sem_util.adb (Build_Explicit_Dereference): If the expression
      	is an overloaded function call use the given discriminant to
      	resolve the call, and set properly the type of the call and of
      	the resulting dereference.
      
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb (Analyze_Pragma): Pragma Constant_After_Elaboration can
      	now apply to a variable without an initialization expression.
      
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch9.adb (Add_Matching_Formals): Parameter Actuals is now of mode
      	IN OUT. Create a new list when list Actuals is not present.
      	(Build_Contract_Wrapper): Create the wrapper
      	only when the entry has at least on checked contract case or
      	pre/postcondition. Ensure that the call to the original entry
      	lacks an actual parameter list when the entry appears without
      	formal parameters.
      	(Expand_Entry_Declaration): Code cleanup.
      
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications): Continue the analysis
      	after encountering an illegal aspect Part_Of.
      
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference, case
      	Overlaps_Storage): Add copies for nodes that represent the integer
      	addresses of the two actuals, to prevent identical nodes in the
      	tree, which the backend cannot handle properly.
      
      From-SVN: r230316
      Arnaud Charlet committed
    • [multiple changes] · 6672e402
      2015-11-13  Bob Duff  <duff@adacore.com>
      
      	* sem_ch6.adb (Check_Private_Overriding): Change
      	name of Parent_Is_Private to be Overrides_Private_Part_Op,
      	and use Unit_Declaration_Node.
      
      2015-11-13  Bob Duff  <duff@adacore.com>
      
      	* sinfo.ads: Minor comment fix.
      	* sem_ch6.adb: Minor reformatting.
      
      2015-11-13  Jerome Lambourg  <lambourg@adacore.com>
      
      	* tracebak.c: Do not use the GCC Unwinder to retrieve traceback
      	for x86_64-vx7.
      
      2015-11-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c [Darwin/arm64]: Fix typo.
      	* sigtramp-armios.c: Remove.
      	* sigtramp-ios.c: New file.
      
      2015-11-13  Doug Rupp  <rupp@adacore.com>
      
      	* s-stchop-vxworks.adb (Set_Stack_Limit_For_Current_Task): Set stack
      	limit to 12000 decimal vice 12000 hexadecimal.
      
      From-SVN: r230315
      Arnaud Charlet committed
    • [multiple changes] · bc38dbb4
      2015-11-13  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch9.adb, exp_fixd.adb, exp_util.adb, g-debpoo.adb,
      	impunit.adb, scos.ads, sem_ch4.adb, sem_prag.adb,
      	s-stchop-vxworks.adb: Minor reformatting.
      
      2015-11-13  Tristan Gingold  <gingold@adacore.com>
      
      	* s-rident.ads (Profile_Info): Enable Pure_Barriers for
      	GNAT_Extended_Ravenscar.
      
      2015-11-13  Bob Duff  <duff@adacore.com>
      
      	* sem_ch6.adb (Check_Private_Overriding): Detect the special
      	case where the overriding subprogram is overriding a subprogram
      	that was declared in the same private part.
      
      From-SVN: r230314
      Arnaud Charlet committed
    • Enhance Changelog entry related to PR ipa/68311. · b512289b
      From-SVN: r230313
      Martin Liska committed
    • Fix memory leaks in graphite · ec17e433
      	* graphite-poly.c (free_scop): Release scop->drs vector.
      	* graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
      	Release dom vector.
      	(try_generate_gimple_bb): Use vNULL as a default initialization
      	for vectors.
      
      From-SVN: r230312
      Martin Liska committed
    • re PR ipa/68311 (gcc/ipa-icf.c:3041: possible sequence point error ?) · c9ab724f
      Fix PR ipa/68311
      
      	PR ipa/68311
      	* ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
      	Replace ctor with auto_vec and initialization in a loop.
      
      From-SVN: r230311
      Martin Liska committed
    • re PR tree-optimization/68306 (ICE: in vectorizable_store, at tree-vect-stmts.c:5651) · 52eab378
      2015-11-13  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/68306
      	* tree-vect-data-refs.c (verify_data_ref_alignment): Move
      	loop related checks ...
      	(vect_verify_datarefs_alignment): ... here.
      	(vect_slp_analyze_and_verify_node_alignment): Compute and
      	verify alignment of the single DR that it matters.
      	* tree-vect-stmts.c (vectorizable_store): Add an assert.
      	(vectorizable_load): Add a comment.
      	* tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
      	for determining load cost.
      
      	* gcc.dg/pr68306.c: Adjust.
      	* gcc.dg/pr68306-2.c: New testcase.
      	* gcc.dg/pr68306-3.c: Likewise.
      
      From-SVN: r230310
      Richard Biener committed
    • tree-vect-loop.c (vect_determine_vectorization_factor): Check mix of boolean and… · e4af0bc4
      tree-vect-loop.c (vect_determine_vectorization_factor): Check mix of boolean and integer vectors in a single statement.
      
      gcc/
      
      	* tree-vect-loop.c (vect_determine_vectorization_factor): Check
      	mix of boolean and integer vectors in a single statement.
      	* tree-vect-slp.c (vect_mask_constant_operand_p): New.
      	(vect_get_constant_vectors): Use vect_mask_constant_operand_p to
      	determine constant type.
      	* tree-vect-stmts.c (vectorizable_comparison): Provide vectype
      	for loop invariants.
      
      gcc/testsuite/
      
      	* g++.dg/vect/simd-bool-comparison-1.cc: New test.
      	* g++.dg/vect/simd-bool-comparison-2.cc: New test.
      
      From-SVN: r230309
      Ilya Enkovich committed
    • exp_ch9.adb: Minor reformatting and typo fixes. · f7259dd4
      2015-11-13  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_ch9.adb: Minor reformatting and typo fixes.
      
      From-SVN: r230308
      Gary Dismukes committed
    • Minor clean up. · 90c7899a
      From-SVN: r230307
      Arnaud Charlet committed
    • * include/experimental/bits/shared_ptr.h: Tweak comments. · 011b25e4
      From-SVN: r230306
      Jonathan Wakely committed
    • [multiple changes] · b8c9f7af
      2015-11-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c [Darwin/arm64]: Move __gnat_sigtramp implementation to...
      	(__gnat_map_signal): New function.
      	(__gnat_error_handler):
      	Adjust the context and call above function.
      	* sigtramp-armios.c: ...here.  New file.
      
      2015-11-13  Arnaud Charlet  <charlet@adacore.com>
      
      	* bcheck.adb (Check_Consistent_Restrictions): Do not check
      	consistency of No_Dependence for runtime units.
      
      2015-11-13  Tristan Gingold  <gingold@adacore.com>
      
      	* s-rident.ads (Restriction_Id): Add Pure_Barriers.
      	* restrict.ads (Implementation_Restriction): Add Pure_Barriers.
      	* exp_ch9.adb (Expand_Entry_Barrier): Create
      	Is_Simple_Barrier_Name function, add Is_Pure_Barrier and
      	Check_Pure_Barriers.
      
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Get_Cursor_Type): To determine whether a function
      	First is the proper Iterable primitive, use the base type of the
      	first formal rather than the type. This is needed in the unusual
      	case where the Iterable aspect is specified for an integer type.
      
      From-SVN: r230305
      Arnaud Charlet committed
    • [multiple changes] · 4e9ee595
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Constant_Indexing_OK): If the indexing is the
      	prefix of a procedure call assume that constant indexing is
      	not chosen.
      
      2015-11-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sigtramp.h: Fix formatting throughout, do not include other
      	headers, add missing preprocessor condition and 'extern' keywords.
      	* sigtramp-armdroid.c: Include <sys/ucontext.h>.
      	* init.c [Android]: Likewise.
      
      From-SVN: r230304
      Arnaud Charlet committed
    • Minor syntactic improvement. · 746fb0c5
      From-SVN: r230303
      Arnaud Charlet committed
    • [multiple changes] · 7dae9ca0
      2015-11-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c [Darwin/arm64] (__gnat_sigtramp): Do not increment PC,
      	fix CFI and add return sequence.
      
      2015-11-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_fixd.adb (Expand_Convert_Float_To_Fixed): If the conversion
      	comes from an attribute reference 'Round, the operation must
      	round and not truncate.
      	* sem_res.adb, sem_ch6.adb: Minor editing.
      
      From-SVN: r230302
      Arnaud Charlet committed
    • fixup changelog entry · 9babab64
      2015-11-13  Dominique d'Humieres <dominiq@lps.ens.fr>
      
      From-SVN: r230301
      Dominique d'Humieres committed
    • Implement std::experimental::shared_ptr with array support · 930d5602
      2015-11-13  Fan You  <youfan.noey@gmail.com>
      	    Jonathan Wakely  <jwakely@redhat.com>
      
      	* include/Makefile.am: Add new header.
      	* include/Makefile.in: Regenerate.
      	* include/experimental/bits/shared_ptr.h: New.
      	* include/experimental/memory: Include new header.
      	* testsuite/experimental/memory/shared_ptr/assign/assign.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cast/cast.cc: New.
      	* testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
      	New.
      	* testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
      	New.
      	* testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: New.
      	* testsuite/experimental/memory/shared_ptr/dest/dest.cc: New.
      	* testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: New.
      	* testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: New.
      	* testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc:
      	New.
      	* testsuite/experimental/memory/shared_ptr/observers/operators.cc:
      	New.
      	* testsuite/experimental/memory/shared_ptr/observers/owner_before.cc:
      	New.
      	* testsuite/experimental/memory/shared_ptr/observers/use_count.cc: New.
      
      Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
      
      From-SVN: r230300
      Fan You committed
    • re PR fortran/47266 (Optimization: Declare PRIVATE module procedures as… · 755fdaab
      re PR fortran/47266 (Optimization: Declare PRIVATE module procedures as "TREE_PUBLIC = 0" ("static function"))
      
      2015-11-13  Dominique d'Humieres <dominiq@lps.ens.fr>
      
      	PR fortran/47266
      	* gfortran.dg/warn_unused_function_2.f90: New test.
      
      From-SVN: r230298
      Dominique d'Humieres committed
    • Optimize condition reductions where the result is an integer induction variable · 360e3406
      2015-11-13  Alan Hayward <alan.hayward@arm.com>
      
      gcc/
      	PR tree-optimization/66558
      	* tree-vect-loop.c (is_integer_induction):Add.
      	(vectorizable_reduction): Add integer induction checks.
      
      gcc/testsuite/
      	PR tree-optimization/66558
      	* gcc.dg/vect/pr65947-1.c: Add checks.
      	* gcc.dg/vect/pr65947-2.c: Add checks.
      	* gcc.dg/vect/pr65947-3.c: Add checks.
      	* gcc.dg/vect/pr65947-4.c: Add checks.
      	* gcc.dg/vect/pr65947-5.c: Add checks.
      	* gcc.dg/vect/pr65947-6.c: Add checks.
      	* gcc.dg/vect/pr65947-10.c: Add checks.
      	* gcc.dg/vect/pr65947-12.c: New test.
      	* gcc.dg/vect/pr65947-13.c: New test.
      
      From-SVN: r230297
      Alan Hayward committed
    • Revert [ARM] Remove neon-testgen.ml and generated tests. · 8f215e0f
      From-SVN: r230296
      Christophe Lyon committed
    • Define alias templates using polymorphic memory resources · 80144045
      	* include/Makefile.am: Add new header.
      	* include/Makefile.in: Regenerate.
      	* include/experimental/memory_resource: Add feature-test macro.
      	* include/experimental/regex: New.
      	* include/experimental/deque: Add alias template using PMR.
      	* include/experimental/forward_list: Likewise.
      	* include/experimental/list: Likewise.
      	* include/experimental/map: Likewise.
      	* include/experimental/set: Likewise.
      	* include/experimental/string: Likewise.
      	* include/experimental/unordered_map: Likewise.
      	* include/experimental/unordered_set: Likewise.
      	* include/experimental/vector: Likewise.
      
      From-SVN: r230295
      Jonathan Wakely committed
    • Implement C++ LFTSv1 polymorphic memory resources · bfeffbd1
      2015-11-13  Fan You  <youfan.noey@gmail.com>
      
      	* include/Makefile.am: Add new headers.
      	* include/Makefile.in: Regenerate.
      	* include/bits/uses_allocator.h (__erased_type): Define.
      	(__uses_allocator_helper): Check for __erased_type.
      	* include/experimental/memory_resource: New.
      	* include/experimental/utlity: New.
      	* testsuite/experimental/type_erased_allocator/1.cc: New.
      	* testsuite/experimental/type_erased_allocator/1_neg.cc: New.
      	* testsuite/experimental/type_erased_allocator/2.cc: New.
      	* testsuite/experimental/type_erased_allocator/uses_allocator.cc: New.
      
      From-SVN: r230294
      Fan You committed
    • tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter. · 6faa9154
      2015-11-13  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
      	Signal fatal failure if early checks fail.
      	(vect_analyze_loop): If vect_analyze_loop_2 fails fatally
      	do not bother testing further vector sizes.
      
      From-SVN: r230292
      Richard Biener committed
    • predicates.md (misaligned_operand): Return true if operand is aligned to less… · f913cc2a
      predicates.md (misaligned_operand): Return true if operand is aligned to less than its natural alignmnet.
      
      	* config/i386/predicates.md (misaligned_operand): Return true if
      	operand is aligned to less than its natural alignmnet.
      
      From-SVN: r230291
      Uros Bizjak committed
    • md.texi (vec_cmp@var{m}@var{n}): New item. · 12fb875f
      gcc/
      
      	* doc/md.texi (vec_cmp@var{m}@var{n}): New item.
      	(vec_cmpu@var{m}@var{n}): New item.
      	(vcond@var{m}@var{n}): Specify comparison is signed.
      	(vcondu@var{m}@var{n}): New item.
      	(vcond_mask_@var{m}@var{n}): New item.
      	(maskload@var{m}@var{n}): New item.
      	(maskstore@var{m}@var{n}): New item.
      
      From-SVN: r230290
      Ilya Enkovich committed
    • tree-vect-stmts.c (vectorizable_mask_load_store): Check types of stored value… · 57e2f6ad
      tree-vect-stmts.c (vectorizable_mask_load_store): Check types of stored value and storage are compatible.
      
      gcc/
      
      	* tree-vect-stmts.c (vectorizable_mask_load_store): Check
      	types of stored value and storage are compatible.
      
      gcc/testsuite/
      
      	* g++.dg/vect/simd-mask-store-bool.cc: New test.
      
      From-SVN: r230289
      Ilya Enkovich committed
    • configure.ac: Enable libmpx by default. · 54985c70
      2015-11-13  Tsvetkova Alexandra  <aleksandra.tsvetkova@intel.com>
      
      	* configure.ac: Enable libmpx by default.
      	* configure: Regenerated.
      
      From-SVN: r230288
      Tsvetkova Alexandra committed
    • [PATCH] gcc.c: new macro POST_LINK_SPECS to be able to add additional · d9386123
      steps after linking
      
      	* gcc.c (POST_LINK_SPEC): Define if not already defined.
      	(LINK_COMMAND_SPEC): Use post_link.
      	(post_link_spec): New, initialize to POST_LINK_SPEC.
      	(post_link): Initialize new static spec.
      	* doc/tm.texi.in (POST_LINK_SPEC): Document.
      	* doc/tm.texi: Regenerated.
      
      From-SVN: r230287
      Andris Pavenis committed
    • PR driver/67613 - spell suggestions for misspelled command line options · 93ebf1fd
      gcc/ChangeLog:
      	PR driver/67613
      	* Makefile.in (GCC_OBJS): Add spellcheck.o.
      	(OBJS): Add spellcheck-tree.o.
      	* gcc.c: Include "spellcheck.h".
      	(suggest_option): New function.
      	(driver::handle_unrecognized_options): Call suggest_option to
      	provide a hint about misspelled options.
      	* spellcheck.c: Update file comment.
      	(levenshtein_distance): Convert 4-param implementation from static
      	to extern scope.  Remove note about unit tests from leading
      	comment for const char * implementation.  Move tree
      	implementation to...
      	* spellcheck-tree.c: New file.
      	* spellcheck.h (levenshtein_distance):  Add 4-param decl.
      
      gcc/testsuite/ChangeLog:
      	PR driver/67613
      	* gcc/testsuite/gcc.dg/spellcheck-options-1.c: New file.
      	* gcc/testsuite/gcc.dg/spellcheck-options-2.c: New file.
      
      From-SVN: r230285
      David Malcolm committed
    • Implement Levenshtein distance; use in C FE for misspelled field names · 277fe616
      This is the combination of:
        [PATCH 1/2] Implement Levenshtein distance
        [PATCH 2/2] C FE: suggest corrections for misspelled field names
      plus some nit fixes in spellcheck.c.
      
      gcc/ChangeLog:
      	* Makefile.in (OBJS): Add spellcheck.o.
      	* spellcheck.c: New file.
      	* spellcheck.h: New file.
      
      gcc/c/ChangeLog:
      	* c-typeck.c: Include spellcheck.h.
      	(lookup_field_fuzzy_find_candidates): New function.
      	(lookup_field_fuzzy): New function.
      	(build_component_ref): If the field was not found, try using
      	lookup_field_fuzzy and potentially offer a suggestion.
      
      gcc/testsuite/ChangeLog:
      	* gcc.dg/plugin/levenshtein-test-1.c: New file.
      	* gcc.dg/plugin/levenshtein_plugin.c: New file.
      	* gcc.dg/plugin/plugin.exp (plugin_test_list): Add
      	levenshtein_plugin.c.
      	* gcc.dg/spellcheck-fields.c: New file.
      
      From-SVN: r230284
      David Malcolm committed
    • ft32.md (*sne): New insn pattern. · 6d82151f
      2015-11-13  James Bowman  <james.bowman@ftdichip.com>
      
              * config/ft32/ft32.md (*sne): New insn pattern.
      
      From-SVN: r230283
      James Bowman committed
    • Daily bump. · 982ef953
      From-SVN: r230281
      GCC Administrator committed