From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12685 invoked by alias); 24 Mar 2005 22:24:27 -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 12665 invoked by uid 48); 24 Mar 2005 22:24:25 -0000 Date: Thu, 24 Mar 2005 22:24:00 -0000 Message-ID: <20050324222425.12663.qmail@sourceware.org> From: "ebotcazou at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050301164523.20263.rcbilson@plg.uwaterloo.ca> References: <20050301164523.20263.rcbilson@plg.uwaterloo.ca> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/20263] [4.0/4.1 Regression] Incorrect asm for global register vars X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg02947.txt.bz2 List-Id: ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-03-24 22:24 ------- > Wouldn't it be better to have DECL_ASSEMBLER_NAME use the real name? What's the > background onthe change to DECL_ASSEMBLER_NAME? Define "real name". In 3.4.x, as discovered by Richard, the C and C++ compilers disagree on DECL_ASSEMBLER_NAME for register variables. In 4.x, the C compiler has been changed to use the C++ idiom that seems more sensible to me: DECL_NAME is the name of the declared variable ("tp") while DECL_ASSEMBLER_NAME is the name of the variable as written in the assembly file ("%g7"). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20263