https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119833
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=97106, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=105018 --- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- As a corollary to commit r15-9523-gca9cffe737d20953082333dacebb65d4261e0d0c "For nvptx offloading, make sure to emit C++ constructor, destructor aliases [PR97106]", in combination with my finding in bug 117010, comment #9, things would actually break for nvptx offloading compilation if we didn't transform weak into strong aliases during offloading compilation (as enabled by 'pass_ipa_whole_program_visibility' via 'in_lto_p' set to 'true'). One potential solution would then be: (In reply to Jakub Jelinek from bug 117010, comment #5) > [...] > So, if some offloading target like NVPTX lacks alias support or lacks weak > alias support, I'm afraid we need to tweak it; add thunks like IPA ICF uses > etc. ..., or implementing proper handling for symbol aliases as well as weak symbols in nvptx 'ld', as discussed in PR105018 "[nvptx] Need better alias support".