aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2020-08-15 00:16:22 +0000
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:08:15 -0300
commitba2f2d55e1061479b46a7676243e0fafdbfa7329 (patch)
tree24dcf8ceec239da0c4b4682486c4bb66f8448109
parentdc4dcb0d6be950848bde53efcbe7af8653b96858 (diff)
downloadgcc-ba2f2d55e1061479b46a7676243e0fafdbfa7329.zip
gcc-ba2f2d55e1061479b46a7676243e0fafdbfa7329.tar.gz
gcc-ba2f2d55e1061479b46a7676243e0fafdbfa7329.tar.bz2
Daily bump.
-rw-r--r--gcc/ChangeLog68
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/analyzer/ChangeLog19
-rw-r--r--gcc/cp/ChangeLog123
-rw-r--r--gcc/testsuite/ChangeLog34
-rw-r--r--libcc1/ChangeLog15
-rw-r--r--libstdc++-v3/ChangeLog5
7 files changed, 265 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e4c0a78..bb7a575 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,71 @@
+2020-08-14 Martin Sebor <msebor@redhat.com>
+
+ PR middle-end/78257
+ * builtins.c (expand_builtin_memory_copy_args): Rename called function.
+ (expand_builtin_stpcpy_1): Remove argument from call.
+ (expand_builtin_memcmp): Rename called function.
+ (inline_expand_builtin_bytecmp): Same.
+ * expr.c (convert_to_bytes): New function.
+ (constant_byte_string): New function (formerly string_constant).
+ (string_constant): Call constant_byte_string.
+ (byte_representation): New function.
+ * expr.h (byte_representation): Declare.
+ * fold-const-call.c (fold_const_call): Rename called function.
+ * fold-const.c (c_getstr): Remove an argument.
+ (getbyterep): Define a new function.
+ * fold-const.h (c_getstr): Remove an argument.
+ (getbyterep): Declare a new function.
+ * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
+ (gimple_fold_builtin_string_compare): Same.
+ (gimple_fold_builtin_memchr): Same.
+
+2020-08-14 David Malcolm <dmalcolm@redhat.com>
+
+ * doc/analyzer.texi (Overview): Add tip about how to get a
+ gimple dump if the analyzer ICEs.
+
+2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
+ (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
+ (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
+ (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
+ * config/i386/i386.md (@lwp_llwpcb<mode>):
+ Implement as parametrized name pattern.
+ (@lwp_slwpcb<mode>): Ditto.
+ (@lwp_lwpval<mode>): Ditto.
+ (@lwp_lwpins<mode>): Ditto.
+ * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
+ [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
+ [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
+ Remove.
+ (ix86_expand_builtin)
+ [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
+ Update for parameterized name patterns.
+ [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
+ [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
+
+2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
+
+ * common.opt: Add new option -fdiagnostics-plain-output.
+ * doc/invoke.texi: Document it.
+ * opts-common.c (decode_cmdline_options_to_array): Implement it.
+ (decode_cmdline_option): Add missing const qualifier to argv.
+
+2020-08-14 Jakub Jelinek <jakub@redhat.com>
+ Jonathan Wakely <jwakely@redhat.com>
+ Jonathan Wakely <jwakely@redhat.com>
+
+ * system.h: Include type_traits.
+ * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
+ on vec_stdlayout, which is conditionally a vec (for standard layout T)
+ and otherwise vec_embedded.
+
+2020-08-14 Jojo R <jiejie_rong@c-sky.com>
+
+ * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
+ * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
+
2020-08-13 David Malcolm <dmalcolm@redhat.com>
PR analyzer/93032
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index da579e6..e6ef660 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20200814
+20200815
diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog
index c1fe30f..9067965 100644
--- a/gcc/analyzer/ChangeLog
+++ b/gcc/analyzer/ChangeLog
@@ -1,3 +1,22 @@
+2020-08-14 David Malcolm <dmalcolm@redhat.com>
+
+ PR testsuite/96609
+ PR analyzer/96616
+ * region-model.cc (region_model::get_store_value): Call
+ maybe_get_constant_value on decl_regions first.
+ * region-model.h (decl_region::maybe_get_constant_value): New decl.
+ * region.cc (decl_region::get_stack_depth): Likewise.
+ (decl_region::maybe_get_constant_value): New.
+ * store.cc (get_subregion_within_ctor): New.
+ (binding_map::apply_ctor_to_region): New.
+ * store.h (binding_map::apply_ctor_to_region): New decl.
+
+2020-08-14 David Malcolm <dmalcolm@redhat.com>
+
+ PR analyzer/96611
+ * store.cc (store::mark_as_escaped): Reject attempts to
+ get a cluster for an unknown pointer.
+
2020-08-13 David Malcolm <dmalcolm@redhat.com>
PR analyzer/93032
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 07d32a5..0244459 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,126 @@
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * name-lookup.h (lookup_name_real, lookup_name_nonclass): Rename
+ to ...
+ (lookup_name): ... these new overloads.
+ * name-lookup.c (identifier_type_value_1): Rename lookup_name_real
+ call.
+ (lookup_name_real_1): Rename to ...
+ (lookup_name_1): ... here.
+ (lookup_name_real): Rename to ...
+ (lookup_name): ... here. Rename lookup_name_real_1 call.
+ (lookup_name_nonclass): Delete.
+ * call.c (build_operator_new_call): Rename lookup_name_real call.
+ (add_operator_candidates): Likewise.
+ (build_op_delete_call): Rename lookup_name_nonclass call.
+ * parser.c (cp_parser_lookup_name): Likewise.
+ * pt.c (tsubst_friend_class, lookup_init_capture_pack): Likewise.
+ (tsubst_expr): Likewise.
+ * semantics.c (capture_decltype): Likewise.
+
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * cp-tree.h (LOOKUP_HIDDEN): Delete.
+ (LOOKUP_PREFER_RVALUE): Adjust initializer.
+ * name-lookup.h (enum class LOOK_want): Add HIDDEN_FRIEND and
+ HIDDEN_LAMBDA flags.
+ (lookup_name_real): Drop flags parm.
+ (lookup_qualified_name): Drop find_hidden parm.
+ * name-lookup.c (class name_lookup): Drop hidden field, adjust
+ ctors.
+ (name_lookup::add_overload): Check want for hiddenness.
+ (name_lookup::process_binding): Likewise.
+ (name_lookup::search_unqualified): Likewise.
+ (identifier_type_value_1): Adjust lookup_name_real call.
+ (set_decl_namespace): Adjust name_lookup ctor.
+ (qualify_lookup): Drop flags parm, use want for hiddenness.
+ (lookup_qualified_name): Drop find_hidden parm.
+ (lookup_name_real_1): Drop flags parm, adjust qualify_lookup
+ calls.
+ (lookup_name_real): Drop flags parm.
+ (lookup_name_nonclass, lookup_name): Adjust lookup_name_real
+ calls.
+ (lookup_type_scope_1): Adjust qualify_lookup calls.
+ * call.c (build_operator_new_call): Adjust lookup_name_real call.
+ (add_operator_candidates): Likewise.
+ * coroutines.cc (morph_fn_to_coro): Adjust lookup_qualified_name
+ call.
+ * parser.c (cp_parser_lookup_name): Adjust lookup_name_real calls.
+ * pt.c (check_explicit_specialization): Adjust
+ lookup_qualified_name call.
+ (deduction_guides_for): Likewise.
+ (tsubst_friend_class): Adjust lookup_name_real call.
+ (lookup_init_capture_pack): Likewise.
+ (tsubst_expr): Likewise, don't look in namespaces.
+ * semantics.c (capture_decltype): Adjust lookup_name_real. Don't
+ look in namespaces.
+
+2020-08-14 Jason Merrill <jason@redhat.com>
+
+ PR c++/90254
+ PR c++/93711
+ * cp-tree.h (unsafe_return_slot_p): Declare.
+ * call.c (is_base_field_ref): Rename to unsafe_return_slot_p.
+ (build_over_call): Check unsafe_return_slot_p.
+ (build_special_member_call): Likewise.
+ * init.c (expand_default_init): Likewise.
+ * typeck2.c (split_nonconstant_init_1): Likewise.
+
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * cp-tree.h (LOOKUP_PREFER_TYPES, LOOKUP_PREFER_NAMESPACES)
+ (LOOKUP_NAMESPACES_ONLY, LOOKUP_TYPES_ONLY)
+ (LOOKUP_QUALIFIERS_ONL): Delete.
+ (LOOKUP_HIDDEN): Adjust.
+ * name-lookup.h (enum class LOOK_want): New.
+ (operator|, operator&): Overloads for it.
+ (lookup_name_real): Replace prefer_type & namespaces_only with
+ LOOK_want parm.
+ (lookup_qualified_name): Replace prefer_type with LOOK_want.
+ (lookup_name_prefer_type): Replace with ...
+ (lookup_name): ... this. New overload with LOOK_want parm.
+ * name-lookup.c (struct name_lookup): Replace flags with want and
+ hidden fields. Adjust constructors.
+ (name_lookyp::add_overload): Correct hidden stripping test. Update
+ for new LOOK_want type.
+ (name_lookup::process_binding): Likewise.
+ (name_lookup::search_unqualified): Use hidden flag.
+ (identifier_type_value_1): Adjust lookup_name_real call.
+ (set_decl_namespace): Adjust name_lookup ctor.
+ (lookup_flags): Delete.
+ (qualify_lookup): Add LOOK_want parm, adjust.
+ (lookup_qualified_name): Replace prefer_type parm with LOOK_want.
+ (lookup_name_real_1): Replace prefer_type and namespaces_only with
+ LOOK_want parm.
+ (lookup_name_real): Likewise.
+ (lookup_name_nonclass, lookup_name): Adjust lookup_name_real call.
+ (lookup_name_prefer_type): Rename to ...
+ (lookup_name): ... here. New overload with LOOK_want parm.
+ (lookup_type_scope_1): Adjust qualify_lookup calls.
+ * call.c (build_operator_new_call)
+ (add_operator_candidates): Adjust lookup_name_real calls.
+ * coroutines.cc (find_coro_traits_template_decl)
+ (find_coro_handle_template_decl, morph_fn_to_coro): Adjust
+ lookup_qualified_name calls.
+ * cp-objcp-common.c (identifier_global_tag): Likewise.
+ * decl.c (get_tuple_size, get_tuple_decomp_init): Likewise.
+ (lookup_and_check_tag): Use lookup_name overload.
+ * parser.c (cp_parser_userdef_numeric_literal): Adjust
+ lookup_qualified_name call.
+ (prefer_arg_type): Drop template_mem_access parm, return LOOK_want
+ value.
+ (cp_parser_lookup_name): Adjust lookup_member, lookup_name_real
+ calls.
+ * pt.c (check_explicit_specialization): Adjust lookup_qualified_name
+ call.
+ (tsubst_copy_and_build, tsubst_qualified_name): Likewise
+ (deduction_guides_for): Likewise.
+ (tsubst_friend_class): Adjust lookup_name_real call.
+ (lookup_init_capture, tsubst_expr): Likewise.
+ * rtti.c (emit_support_tinfos): Adjust lookup_qualified_name call.
+ * semantics.c (omp_reduction_lookup): Likewise.
+ (capture_decltype): Adjust lookup_name_real call.
+
2020-08-13 Nathan Sidwell <nathan@acm.org>
* name-lookup.h (enum class LOOK_where): New.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 78eecea..9e4e589 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,37 @@
+2020-08-14 Martin Sebor <msebor@redhat.com>
+
+ PR middle-end/78257
+ * gcc.dg/memchr.c: New test.
+ * gcc.dg/memcmp-2.c: New test.
+ * gcc.dg/memcmp-3.c: New test.
+ * gcc.dg/memcmp-4.c: New test.
+
+2020-08-14 David Malcolm <dmalcolm@redhat.com>
+
+ PR analyzer/96611
+ * gcc.dg/analyzer/pr96611.c: New test.
+
+2020-08-14 Jason Merrill <jason@redhat.com>
+
+ PR c++/90254
+ PR c++/93711
+ * g++.dg/cpp1z/aggr-base10.C: New test.
+ * g++.dg/cpp2a/no_unique_address7.C: New test.
+ * g++.dg/cpp2a/no_unique_address7a.C: New test.
+
+2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
+
+ * lib/prune.exp: Change TEST_ALWAYS_FLAGS to use -fdiagnostics-plain-output.
+ * lib/c-compat.exp: Adapt to the prune.exp change.
+
+2020-08-14 Tom de Vries <tdevries@suse.de>
+
+ * gcc.dg/torture/pr92088-1.c: Add require-effective-target alloca.
+ * gcc.dg/torture/pr92088-2.c: Same.
+ * gcc.dg/torture/pr93124.c: Same.
+ * gcc.dg/torture/pr94479.c: Same.
+ * gcc.dg/tree-ssa/builtin-sprintf-warn-22.c: Same.
+
2020-08-13 David Malcolm <dmalcolm@redhat.com>
PR analyzer/96598
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index 5603817..fbf238e 100644
--- a/libcc1/ChangeLog
+++ b/libcc1/ChangeLog
@@ -1,3 +1,18 @@
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_build_dependent_expr): Rename
+ lookup_name_real call.
+
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
+ lookup_name_real call.
+
+2020-08-14 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
+ lookup_name_real & lookup_qualified_name calls.
+
2020-08-13 Nathan Sidwell <nathan@acm.org>
* libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9c7fc0e..fe6884b 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
+
+ * testsuite/lib/libstdc++.exp: Use the new option
+ -fdiagnostics-plain-output.
+
2020-08-13 Jonathan Wakely <jwakely@redhat.com>
* acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Warn if the c_std