[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-05-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #13 from CVS Commits --- The trunk branch has been updated by Giuliano Belinassi : https://gcc.gnu.org/g:7a3f38a966a52893fb5bae301a1a3d56961358fb commit r13-566-g7a3f38a966a52893fb5bae301a1a3d56961358fb Author: Giuliano Belinassi

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #12 from Richard Biener --- (In reply to Richard Biener from comment #11) > (In reply to Richard Biener from comment #10) > > Btw, a good example might be how we handle .vtable_map_vars for VTV which > > uses

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #11 from Richard Biener --- (In reply to Richard Biener from comment #10) > Btw, a good example might be how we handle .vtable_map_vars for VTV which > uses handle_vtv_comdat_section instead of switch_to_section. It might have >

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #10 from Richard Biener --- Btw, a good example might be how we handle .vtable_map_vars for VTV which uses handle_vtv_comdat_section instead of switch_to_section. It might have more specialities but then it should serve as a

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-08 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #9 from Martin Liška --- > + const char *sname = "__patchable_function_entries"; > + const char *name = DECL_SECTION_NAME (current_function_decl); > + > + dot = strchr (name + 1, '.'); > + if (!dot) >

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 Michael Matz changed: What|Removed |Added CC||matz at gcc dot gnu.org --- Comment #8

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #7 from Martin Liška --- Yes, looking at clang++, they utilize G (group) section flags: _ZN21WinsockInterfaceClass12Get_ProtocolEv: # @_ZN21WinsockInterfaceClass12Get_ProtocolEv .Lfunc_begin0: .cfi_startproc # %bb.0:

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #6 from rguenther at suse dot de --- On Wed, 6 Apr 2022, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 > > --- Comment #5 from Martin Liška --- > It's there since the introduction of the

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #5 from Martin Liška --- It's there since the introduction of the option in r8-2176-g417ca0117a1a9a8a.

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #4 from Richard Biener --- (In reply to Martin Liška from comment #2) > Confirmed, a bit reduced test-case: > > $ cat 1.ii > struct WinsockInterfaceClass { > virtual int Get_Protocol() { return 0; } > } PacketTransport; > > $

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 --- Comment #3 from Martin Liška --- And the following works: g++ 2.ii 1.ii -fpatchable-function-entry=1 -O2

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug c++/105169] Compiling C++ code with -fpatchable-function-entry=16,14 results in references to discarded sections

2022-04-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Keywords|