From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20362 invoked by alias); 15 Mar 2006 20:10:58 -0000 Received: (qmail 20337 invoked by alias); 15 Mar 2006 20:10:55 -0000 Date: Wed, 15 Mar 2006 20:10:00 -0000 Message-ID: <20060315201055.20336.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/26702] Size of static variables always zero on arm-elf In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sjackman at gmail dot com" 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 X-SW-Source: 2006-03/txt/msg01632.txt.bz2 List-Id: ------- Comment #8 from sjackman at gmail dot com 2006-03-15 20:10 ------- Subject: Re: Size of static variables always zero on arm-elf GCC is not emitting the type or size information for static bss symbols. -- sdj $ echo 'static int foo = 1;' >foo.c $ arm-elf-gcc -S foo.c -odata.s $ echo 'static int foo;' >foo.c $ arm-elf-gcc -S foo.c -obss.s $ diff -u data.s bss.s --- data.s 2006-03-15 13:08:17.000000000 -0700 +++ bss.s 2006-03-15 13:08:17.000000000 -0700 @@ -1,8 +1,6 @@ .file "foo.c" - .data + .bss .align 2 - .type foo, %object - .size foo, 4 foo: - .word 1 + .space 4 .ident "GCC: (GNU) 4.1.0" -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26702