Re: [PATCH v2] PR105169 Fix references to discarded sections

2022-05-17 Thread Richard Biener via Gcc-patches
> Am 17.05.2022 um 19:37 schrieb Giuliano Belinassi via Gcc-patches > : > > On Mon, 2022-05-09 at 13:39 +0200, Richard Biener wrote: >>> On Sat, 7 May 2022, Giuliano Belinassi wrote: >>> >>> When -fpatchable-function-entry= is enabled, certain C++ codes >>> fails to >>> link because of gener

Re: [PATCH v2] PR105169 Fix references to discarded sections

2022-05-17 Thread Giuliano Belinassi via Gcc-patches
On Mon, 2022-05-09 at 13:39 +0200, Richard Biener wrote: > On Sat, 7 May 2022, Giuliano Belinassi wrote: > > > When -fpatchable-function-entry= is enabled, certain C++ codes > > fails to > > link because of generated references to discarded sections in > > __patchable_function_entry section. This

[PATCH v2] PR105169 Fix references to discarded sections

2022-05-09 Thread Giuliano Belinassi via Gcc-patches
When -fpatchable-function-entry= is enabled, certain C++ codes fails to link because of generated references to discarded sections in __patchable_function_entry section. This commit fixes this problem by puting those references in a COMDAT section. On the previous patch, GCC fails to compile with

Re: [PATCH v2] PR105169 Fix references to discarded sections

2022-05-09 Thread Richard Biener via Gcc-patches
On Sat, 7 May 2022, Giuliano Belinassi wrote: > When -fpatchable-function-entry= is enabled, certain C++ codes fails to > link because of generated references to discarded sections in > __patchable_function_entry section. This commit fixes this problem by > puting those references in a COMDAT sect