fix output of static variables after .comm change
authorMatthias Braun <matze@braunis.de>
Thu, 1 Mar 2007 22:23:45 +0000 (22:23 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 1 Mar 2007 22:23:45 +0000 (22:23 +0000)
ir/be/ia32/ia32_gen_decls.c

index a88177e..9b8c644 100644 (file)
@@ -533,7 +533,7 @@ static void dump_global(ia32_decl_env_t *env, ir_entity *ent, int emit_commons)
        } else if (variability == variability_uninitialized) {
                /* uninitialized entity put it in bss segment */
                obst = env->bss_obst;
-               if(emit_commons)
+               if(emit_commons && visibility != visibility_local)
                        emit_as_common = 1;
        }