This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18465] New: static function with asm("name") and attribute("used") not emitted
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2004 18:57:07 -0000
- Subject: [Bug c/18465] New: static function with asm("name") and attribute("used") not emitted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
With this code:
static void f() __asm__("ff") __attribute__((used));
static void __attribute__((used)) f() { }
gcc 3.3 doesn't emit any code for ff when optimizing (-O3). gcc 3.4 and 4 do.
This breaks mozilla on alpha-linux.
--
Summary: static function with asm("name") and attribute("used")
not emitted
Product: gcc
Version: 3.3.5
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18465