From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 701 invoked by alias); 27 Nov 2004 20:45:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 576 invoked by uid 48); 27 Nov 2004 20:44:57 -0000 Date: Sat, 27 Nov 2004 20:45:00 -0000 Message-ID: <20041127204457.575.qmail@sourceware.org> From: "hjl at lucon dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041013220543.17982.schwab@suse.de> References: <20041013220543.17982.schwab@suse.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/17982] [4.0 regression] asm declaration ignored due to conflict with previous rename X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg03369.txt.bz2 List-Id: ------- Additional Comments From hjl at lucon dot org 2004-11-27 20:44 ------- DECL_ASSEMBLER_NAME_SET_P alone is not very reliable to check if a symbol has been renamed or not. There are /* The name of the object as the assembler will see it (but before any translations made by ASM_OUTPUT_LABELREF). Often this is the same as DECL_NAME. It is an IDENTIFIER_NODE. */ #define DECL_ASSEMBLER_NAME(NODE) decl_assembler_name (NODE) /* Returns nonzero if the DECL_ASSEMBLER_NAME for NODE has been set. If zero, the NODE might still have a DECL_ASSEMBLER_NAME -- it just hasn't been set yet. */ #define DECL_ASSEMBLER_NAME_SET_P(NODE) \ (DECL_CHECK (NODE)->decl.assembler_name != NULL_TREE) and /* The name of the object as the assembler will see it (but before any translations made by ASM_OUTPUT_LABELREF). Often this is the same as DECL_NAME. It is an IDENTIFIER_NODE. */ tree decl_assembler_name (tree decl) { if (!DECL_ASSEMBLER_NAME_SET_P (decl)) lang_hooks.set_decl_assembler_name (decl); return DECL_CHECK (decl)->decl.assembler_name; } Simply calling DECL_ASSEMBLER_NAME will make DECL_ASSEMBLER_NAME_SET_P to return TRUE. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17982