From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14818 invoked by alias); 16 Aug 2004 13:35:19 -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 14811 invoked by uid 48); 16 Aug 2004 13:35:18 -0000 Date: Mon, 16 Aug 2004 13:35:00 -0000 Message-ID: <20040816133518.14810.qmail@sourceware.org> From: "schwab at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040816093435.17047.do8896@db.com> References: <20040816093435.17047.do8896@db.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/17047] GCC incorrectly recognizes static vars when they are meet in asm blocks with -O2,-O3,-Os compiler options X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01527.txt.bz2 List-Id: ------- Additional Comments From schwab at suse dot de 2004-08-16 13:35 ------- There is no way for gcc to see the reference in the asm. Either use __attribute__((used)) to tell it that the variable is used, or make the dependency explicit in the asm by adding it as a parameter. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17047