[Bug target/19315] variable is not emitted in the asm

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 12 05:43:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-12 05:43 -------
-pedantic rejects the code.

This looks like another undocumened extension and how it works too.
Reading the comment in c-decl.c says this is how it should work but this is just plainly stupid:
          /* If a `static' var's size isn't known,
             make it extern as well as static, so it does not get
             allocated.
             If it is not `static', then do not mark extern;
             finish_incomplete_decl will give it a default size
             and it will get allocated.  */

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19315



More information about the Gcc-bugs mailing list