[Bug c++/90947] [9 Regression] Simple lookup table of array of strings is miscompiled
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 14 20:37:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90947
--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Aug 14 20:36:46 2019
New Revision: 274494
URL: https://gcc.gnu.org/viewcvs?rev=274494&root=gcc&view=rev
Log:
Backport from mainline
2019-08-01 Martin Sebor <msebor@redhat.com>
PR c++/90947
* tree.c (type_initializer_zero_p): Define.
* tree.h (type_initializer_zero_p): New function.
2019-08-05 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (Common Variable Attributes): Document alias
attribute.
2019-08-01 Martin Sebor <msebor@redhat.com>
PR c++/90947
* decl.c (reshape_init_array_1): Avoid truncating initializer
lists containing string literals.
2019-08-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/91294
* gcc.dg/strlenopt-44.c: Adjust tested result.
* gcc.dg/strlenopt-70.c: Avoid exercising unimplemnted optimization.
* gcc.dg/strlenopt-73.c: New test.
* gcc.dg/strlenopt-74.c: New test.
* gcc.dg/strlenopt-75.c: New test.
* gcc.dg/strlenopt-76.c: New test.
* gcc.dg/strlenopt-77.c: New test.
Added:
branches/gcc-9-branch/gcc/testsuite/c-c++-common/array-1.c
branches/gcc-9-branch/gcc/testsuite/g++.dg/abi/mangle73.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp2a/nontype-class23.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/init/array53.C
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cp/ChangeLog
branches/gcc-9-branch/gcc/cp/decl.c
branches/gcc-9-branch/gcc/doc/extend.texi
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/tree.c
branches/gcc-9-branch/gcc/tree.h
More information about the Gcc-bugs
mailing list