https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89887

--- Comment #8 from vfdff <zhongyunde at huawei dot com> ---
an static variable out put in assemble is decided by an special option
flag_toplevel_reorder ?

      /* Traditionally we do not eliminate static variables when not
         optimizing and when not doing toplevel reoder.  */
      || node->no_reorder
      || ((!flag_toplevel_reorder
          && !DECL_COMDAT (node->decl)
           && !DECL_ARTIFICIAL (node->decl))))
    node->force_output = true;

Reply via email to