This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Do not create assembler names for abstract decls
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Dec 2009 20:36:09 +0100 (CET)
- Subject: [PATCH] Do not create assembler names for abstract decls
With free-lang-data we force assembler names for abstract decls.
This is not needed. Bootstrapped on x86_64-unknown-linux-gnu,
testing in progress.
Richard.
2009-12-11 Richard Guenther <rguenther@suse.de>
* tree.c (need_assembler_name_p): Abstract decls do not need
an assembler name.
Index: gcc/tree.c
===================================================================
--- gcc/tree.c (revision 155173)
+++ gcc/tree.c (working copy)
@@ -4273,6 +4273,10 @@ need_assembler_name_p (tree decl)
|| DECL_ASSEMBLER_NAME_SET_P (decl))
return false;
+ /* Abstract decls do not need an assembler name. */
+ if (DECL_ABSTRACT (decl))
+ return false;
+
/* For VAR_DECLs, only static, public and external symbols need an
assembler name. */
if (TREE_CODE (decl) == VAR_DECL