2020-03-25 Jakub Jelinek <jakub@redhat.com>
+ PR c++/94223
+ * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
+ counter instead of DECL_UID.
+
PR tree-optimization/94300
* tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
is positive, make sure that off + size isn't larger than needed_len.
Can't use just the variable's own name for a variable whose scope
is less than the whole compilation. Concatenate a distinguishing
- number - we use the DECL_UID. */
+ number. */
if (TREE_PUBLIC (decl) || DECL_FILE_SCOPE_P (decl))
id = targetm.mangle_decl_assembler_name (decl, DECL_NAME (decl));
else
{
const char *name = IDENTIFIER_POINTER (DECL_NAME (decl));
+ static unsigned long num;
char *label;
- ASM_FORMAT_PRIVATE_NAME (label, name, DECL_UID (decl));
+ ASM_FORMAT_PRIVATE_NAME (label, name, num++);
id = get_identifier (label);
}
+2020-03-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/94223
+ * lto-lang.c (lto_set_decl_assembler_name): Use a static ulong
+ counter instead of DECL_UID.
+
2020-03-24 Tobias Burnus <tobias@codesourcery.com>
PR libgomp/81689
{
const char *name = IDENTIFIER_POINTER (DECL_NAME (decl));
char *label;
+ static unsigned long num;
- ASM_FORMAT_PRIVATE_NAME (label, name, DECL_UID (decl));
+ ASM_FORMAT_PRIVATE_NAME (label, name, num++);
id = get_identifier (label);
}
2020-03-25 Jakub Jelinek <jakub@redhat.com>
+ PR c++/94223
+ * g++.dg/opt/pr94223.C: New test.
+
PR tree-optimization/94300
* gcc.target/i386/avx512f-pr94300.c: New test.
--- /dev/null
+// PR c++/94223
+// { dg-do compile }
+// { dg-options "-O0 -std=c++2a -fcompare-debug" }
+
+#include "../cpp1z/init-statement6.C"