aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2022-10-08 00:17:29 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2022-10-08 00:17:29 +0000
commit9ff6c33e2ec0d75958d3f19089519034e8f96a30 (patch)
treea8a8e822a4154667572bec1ce31efe2fbf5635ab /gcc
parent895dd027d5dda51a95d242aec8a49a6dfa5db58d (diff)
downloadgcc-9ff6c33e2ec0d75958d3f19089519034e8f96a30.zip
gcc-9ff6c33e2ec0d75958d3f19089519034e8f96a30.tar.gz
gcc-9ff6c33e2ec0d75958d3f19089519034e8f96a30.tar.bz2
Daily bump.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog126
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/analyzer/ChangeLog9
-rw-r--r--gcc/c-family/ChangeLog17
-rw-r--r--gcc/c/ChangeLog10
-rw-r--r--gcc/cp/ChangeLog52
-rw-r--r--gcc/objc/ChangeLog5
-rw-r--r--gcc/testsuite/ChangeLog59
8 files changed, 279 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ad2c6e7..5086463 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,129 @@
+2022-10-07 Eugene Rozenfeld <erozen@microsoft.com>
+
+ * tree-cfg.cc (assign_discriminators): Set discriminators for call stmts
+ on the same line within the same basic block.
+
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ PR tree-optimization/101836
+ * tree-object-size.cc (addr_object_size): Use array_at_struct_end_p
+ to determine a flexible array member reference.
+
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ * doc/extend.texi: Document strict_flex_array attribute.
+ * doc/invoke.texi: Document -fstrict-flex-arrays[=n] option.
+ * print-tree.cc (print_node): Print new bit decl_not_flexarray.
+ * tree-core.h (struct tree_decl_common): New bit field
+ decl_not_flexarray.
+ * tree-streamer-in.cc (unpack_ts_decl_common_value_fields): Stream
+ in new bit decl_not_flexarray.
+ * tree-streamer-out.cc (pack_ts_decl_common_value_fields): Stream
+ out new bit decl_not_flexarray.
+ * tree.cc (array_at_struct_end_p): Update it with the new bit field
+ decl_not_flexarray.
+ * tree.h (DECL_NOT_FLEXARRAY): New flag.
+
+2022-10-07 Olivier Hainque <hainque@adacore.com>
+
+ * config/vxworks/_vxworks-versions.h: Use OS specific
+ paths in #include of version.h.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * opts.cc (finish_options): Print sorry message only
+ for -flive-patching=inline-only-static.
+
+2022-10-07 Jason Merrill <jason@redhat.com>
+
+ * gimplify.cc (gimplify_modify_expr_rhs): Don't optimize
+ x = *(A*)&<expr> to x = <expr> for a TREE_ADDRESSABLE type.
+
+2022-10-07 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/107153
+ * tree-cfg.cc (gimple_duplicate_sese_tail): Do not update
+ SSA form here.
+ * tree-parloops.cc (gen_parallel_loop): Update SSA form
+ after to-exit-first transform, no PHI insertion is necessary.
+ (pass_parallelize_loops::execute): Force re-write of the
+ virtual operand SSA web.
+
+2022-10-07 Jonathan Wakely <jwakely@redhat.com>
+
+ * value-range.cc (irange::irange_contains_p): Fix comment typo.
+
+2022-10-07 Eric Botcazou <ebotcazou@adacore.com>
+
+ * function.cc (thread_prologue_and_epilogue_insns): Update only
+ entry and exit blocks when not optimizing. Remove dead statement.
+
+2022-10-07 Aldy Hernandez <aldyh@redhat.com>
+
+ * value-range.cc (irange::irange_set): Convert nonzero mask to
+ tree.
+ (irange::irange_set_anti_range): Same.
+ (irange::set): Same.
+ (irange::verify_range): Same.
+ (irange::contains_p): Same.
+ (irange::invert): Same.
+ (irange::set_range_from_nonzero_bits): Same.
+ (irange::set_nonzero_bits): Same.
+ (mask_to_wi): Same.
+ (irange::intersect_nonzero_bits): Same.
+ (irange::union_nonzero_bits): Same.
+ * value-range.h (irange::varying_compatible_p): Same.
+ (gt_ggc_mx): Same.
+ (gt_pch_nx): Same.
+ (irange::set_undefined): Same.
+ (irange::set_varying): Same.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * config/i386/i386-protos.h (ix86_binary_operator_ok): Add array
+ size to function parameter.
+ (ix86_unary_operator_ok): Likewise.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * auto-profile.cc (get_inline_stack): Remove unused variable.
+
+2022-10-07 Jakub Jelinek <jakub@redhat.com>
+
+ * ipa-prop.h (ipa_constant_data): Fix comment typo.
+ * value-range.cc (irange::irange_contains_p): Likewise.
+ * value-relation.cc (dom_oracle::set_one_relation): Likewise.
+ * gimple-predicate-analysis.cc (predicate::simplify_4): Likewise.
+ * tree-inline.cc (remap_ssa_name): Likewise.
+
+2022-10-07 Jakub Jelinek <jakub@redhat.com>
+
+ * attribs.h (is_attribute_namespace_p): New inline function.
+ (lookup_attribute): Document meaning of ATTR_NS equal to "".
+ * attribs.cc (remove_attribute): Use is_attribute_namespace_p.
+ (private_lookup_attribute): For ATTR_NS "" match either standard
+ attribute or "gnu" namespace one.
+
+2022-10-07 Olivier Hainque <hainque@adacore.com>
+
+ * config/vxworks.h (DWARF_VERSION_DEFAULT): Adjust from
+ 4 to 3 for VxWorks >= 7.
+
+2022-10-07 Olivier Hainque <hainque@adacore.com>
+
+ * defaults.h (DWARF_DEFAULT_VERSION): Define if not
+ defined already.
+ * common.opt (gdwarf-): Use it.
+ * doc/tm.texi.in (DWARF_DEFAULT_VERSION): Document.
+ * doc/tm.texi: Update accordingly.
+ * config/vxworks.h (DWARF_DEFAULT_VERSION): Redefine.
+ * config/vxworks.cc: Remove code setting dwarf_version, now
+ handled by the DWARF_DEFAULT_VERSION redefinition.
+
+2022-10-07 Olivier Hainque <hainque@adacore.com>
+
+ * ginclude/stddef.h: #undef offsetof before #define.
+
2022-10-06 Aldy Hernandez <aldyh@redhat.com>
PR tree-optimization/107170
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 12abceb..ab0c096 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20221007
+20221008
diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog
index 70e9289..33477da 100644
--- a/gcc/analyzer/ChangeLog
+++ b/gcc/analyzer/ChangeLog
@@ -1,3 +1,12 @@
+2022-10-07 David Malcolm <dmalcolm@redhat.com>
+
+ PR analyzer/105783
+ * region-model.cc (selftest::get_bit): New function.
+ (selftest::test_bits_within_svalue_folding): New.
+ (selfftest::analyzer_region_model_cc_tests): Call it.
+ * svalue.cc (constant_svalue::maybe_fold_bits_within): Handle the
+ case of extracting a single bit.
+
2022-10-06 David Malcolm <dmalcolm@redhat.com>
PR analyzer/107158
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 75ff47d..7bae1d5 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,20 @@
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ * c-attribs.cc (handle_strict_flex_array_attribute): New function.
+ (c_common_attribute_table): New item for strict_flex_array.
+ * c.opt: (fstrict-flex-arrays): New option.
+ (fstrict-flex-arrays=): New option.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * name-hint.h: Use std::move.
+
+2022-10-07 Jakub Jelinek <jakub@redhat.com>
+
+ * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute
+ only in gnu namespace or as standard attribute, treat fallthrough
+ attributes in other namespaces like any other unknown attribute.
+
2022-10-06 Joseph Myers <joseph@codesourcery.com>
* c-common.cc (c_common_reswords): Mark typeof as D_EXT11. Add
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 325b1f8..a25e1b4 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,13 @@
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ * c-decl.cc (flexible_array_member_type_p): New function.
+ (one_element_array_type_p): Likewise.
+ (zero_length_array_type_p): Likewise.
+ (add_flexible_array_elts_to_size): Call new utility
+ routine flexible_array_member_type_p.
+ (is_flexible_array_member_p): New function.
+ (finish_struct): Set the new DECL_NOT_FLEXARRAY flag.
+
2022-10-06 Joseph Myers <joseph@codesourcery.com>
* c-parser.cc (c_parse_init): Add D_EXT11 to mask if flag_no_asm
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0fe21fd..3aa9f03 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,55 @@
+2022-10-07 Marek Polacek <polacek@redhat.com>
+
+ PR c++/107085
+ * call.cc (conv_binds_ref_to_temporary): New.
+ (ref_conv_binds_directly): Rename to...
+ (ref_conv_binds_to_temporary): ...this. Use
+ conv_binds_ref_to_temporary.
+ * cp-tree.h (ref_conv_binds_directly): Rename to...
+ (ref_conv_binds_to_temporary): ...this.
+ * method.cc (ref_xes_from_temporary): Use ref_conv_binds_to_temporary.
+ * parser.cc (warn_for_range_copy): Likewise.
+
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ * module.cc (trees_out::core_bools): Stream out new bit
+ decl_not_flexarray.
+ (trees_in::core_bools): Stream in new bit decl_not_flexarray.
+
+2022-10-07 Patrick Palka <ppalka@redhat.com>
+
+ * module.cc (trees_out::mark_class_def): Guard against
+ DECL_BIT_FIELD_REPRESENTATIVE not being a decl.
+
+2022-10-07 Jason Merrill <jason@redhat.com>
+
+ * init.cc (expand_default_init): Also push the INIT_EXPR inside a
+ CLEANUP_POINT_EXPR.
+
+2022-10-07 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/104433
+ * module.cc (trees_out::core_bools): Don't override
+ DECL_EXTERNAL to true for static variables from an inline
+ function.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * module.cc (enum module_state_counts): Use array size.
+ * name-lookup.cc (class namespace_limit_reached): Likewise.
+ (class module_state): Move up in the file.
+
+2022-10-07 Jakub Jelinek <jakub@redhat.com>
+
+ * parser.cc (cp_parser_check_std_attribute): Only do checks if
+ attribute is a standard attribute or in gnu namespace and only
+ lookup other attributes in those namespaces.
+ * cp-gimplify.cc (lookup_hotness_attribute): Adjust function comment.
+ Only return true for standard attribute or gnu namespace attribute.
+ (remove_hotness_attribute): Only remove hotness attributes when
+ they are standard or in gnu namespace, implement it in a single
+ loop rather than former 4 now 8 remove_attribute calls.
+
2022-10-06 Jason Merrill <jason@redhat.com>
* coroutines.cc (expand_one_await_expression): Change conversion
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 01720f7..a83c3c7 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,8 @@
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * objc-gnu-runtime-abi-01.cc (generate_static_references):
+ Remove unused variable.
+
2022-06-02 David Malcolm <dmalcolm@redhat.com>
* objc-act.h (objc_get_sarif_source_language): New decl.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9577fc1..af8fc3f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,62 @@
+2022-10-07 Marek Polacek <polacek@redhat.com>
+
+ PR c++/107085
+ * g++.dg/ext/reference_constructs_from_temporary1.C: Adjust expected
+ result.
+ * g++.dg/ext/reference_converts_from_temporary1.C: Likewise.
+ * g++.dg/cpp0x/elision4.C: New test.
+
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ PR tree-optimization/101836
+ * gcc.dg/pr101836.c: New test.
+ * gcc.dg/pr101836_1.c: New test.
+ * gcc.dg/pr101836_2.c: New test.
+ * gcc.dg/pr101836_3.c: New test.
+ * gcc.dg/pr101836_4.c: New test.
+ * gcc.dg/pr101836_5.c: New test.
+ * gcc.dg/strict-flex-array-2.c: New test.
+ * gcc.dg/strict-flex-array-3.c: New test.
+
+2022-10-07 Qing Zhao <qing.zhao@oracle.com>
+
+ * g++.dg/strict-flex-array-1.C: New test.
+ * gcc.dg/strict-flex-array-1.c: New test.
+
+2022-10-07 David Malcolm <dmalcolm@redhat.com>
+
+ PR analyzer/105783
+ * gcc.dg/analyzer/pr105783.c: New test.
+
+2022-10-07 Patrick Palka <ppalka@redhat.com>
+
+ * g++.dg/modules/bfield-3.H: New test.
+
+2022-10-07 Martin Liska <mliska@suse.cz>
+
+ * gcc.dg/live-patching-2.c: Update scanned pattern.
+ * gcc.dg/live-patching-5.c: New test.
+
+2022-10-07 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/104433
+ * g++.dg/modules/static-2_a.H: New test.
+ * g++.dg/modules/static-2_b.C: New test.
+
+2022-10-07 Jason Merrill <jason@redhat.com>
+
+ * g++.dg/init/elide9.C: New test.
+
+2022-10-07 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/107153
+ * gcc.dg/autopar/pr107153.c: New testcase.
+
+2022-10-07 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.dg/cpp1z/fallthrough2.C: New test.
+ * g++.dg/cpp2a/attr-likely7.C: New test.
+
2022-10-06 Aldy Hernandez <aldyh@redhat.com>
PR tree-optimization/107170