[Bug c/89886] the local array data will be laid in different section by different optimization level

2019-04-01 Thread zhongyunde at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89886 --- Comment #4 from vfdff --- Created attachment 46067 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46067&action=edit the history of patch merged

[Bug c/89886] the local array data will be laid in different section by different optimization level

2019-04-01 Thread zhongyunde at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89886 --- Comment #3 from vfdff --- A further thing, I think a 'static variables' will be put out in assemble, it does not mean it is referenced ? 8dfbf71d (hubicka 2010-05-14 23:39:39 + 1286) /* Return true when all references to VNODE must be

[Bug c/89886] the local array data will be laid in different section by different optimization level

2019-04-01 Thread zhongyunde at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89886 --- Comment #2 from vfdff --- it was worked in function varpool_node::finalize_decl (tree decl) /* Set definition first before calling notice_global_symbol so that it is available to notice_global_symbol. */ node->definition = true; n

[Bug c/89886] the local array data will be laid in different section by different optimization level

2019-04-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89886 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---