PR lto/43080
* gimple.c (gimple_decl_printable_name): Deal gracefully
with a NULL DECL_NAME.
* g++.dg/lto/
20100423-3_0.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158723
138bc75d-0d04-0410-961f-
82ee72b054a4
2010-04-26 Richard Guenther <rguenther@suse.de>
+ PR lto/43080
+ * gimple.c (gimple_decl_printable_name): Deal gracefully
+ with a NULL DECL_NAME.
+
+2010-04-26 Richard Guenther <rguenther@suse.de>
+
PR lto/42425
* tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
if emitting debug information and it is either a function
const char *
gimple_decl_printable_name (tree decl, int verbosity)
{
- gcc_assert (decl && DECL_NAME (decl));
+ if (!DECL_NAME (decl))
+ return NULL;
if (DECL_ASSEMBLER_NAME_SET_P (decl))
{
2010-04-26 Richard Guenther <rguenther@suse.de>
+ PR lto/43080
+ * g++.dg/lto/20100423-3_0.C: New testcase.
+
+2010-04-26 Richard Guenther <rguenther@suse.de>
+
PR lto/42425
* g++.dg/lto/20100423-2_0.C: New testcase.
--- /dev/null
+// { dg-lto-do assemble }
+// { dg-lto-options {{-flto -g}} }
+
+inline int foo()
+{
+ static union { int i; };
+ return i;
+}
+
+void bar()
+{
+ foo();
+}
+