This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/26702] Size of static variables always zero on arm-elf



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]