[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 --- Comment #7 from cqwrteur --- Created attachment 49825 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49825&action=edit header only naive version g++ -o naive naive.cc -Ofast -std=c++20 -s -flto compile both of them and compare assembl

[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 --- Comment #6 from cqwrteur --- (In reply to Nathan Sidwell from comment #2) > Is this windows-specific? please privode preprocessed source and compilation > command. You need to just compile the code and then use objdump to view generated asse

[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 --- Comment #5 from cqwrteur --- (In reply to cqwrteur from comment #3) > Created attachment 49824 [details] > just compile them and link together to see assembly. compilation command g++ -o main main.cc hello.cc -Ofast -std=c++20 -flto -fmodul

[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 --- Comment #4 from cqwrteur --- (In reply to Nathan Sidwell from comment #2) > Is this windows-specific? please privode preprocessed source and compilation > command. no

[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 --- Comment #3 from cqwrteur --- Created attachment 49824 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49824&action=edit just compile them and link together to see assembly.

[Bug c++/98364] C++20 module global constructor emission

2020-12-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #2 from Nathan Sidw

[Bug c++/98364] C++20 module global constructor emission

2020-12-18 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 Nathan Sidwell changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc