Re: V3 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-14 Thread H.J. Lu via Gcc-patches
On Mon, Dec 14, 2020 at 5:06 PM Jeff Law wrote: > > > > On 12/8/20 5:51 AM, H.J. Lu wrote: > > When definitions marked with used attribute and unmarked definitions are > > placed in the section with the same name, switch to a new section if the > > SECTION_RETAIN bit doesn't match. > > > > gcc/ >

Re: V3 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-14 Thread Jeff Law via Gcc-patches
On 12/8/20 5:51 AM, H.J. Lu wrote: > When definitions marked with used attribute and unmarked definitions are > placed in the section with the same name, switch to a new section if the > SECTION_RETAIN bit doesn't match. > > gcc/ > > PR target/98146 > * output.h (switch_to_section):

Re: V3 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-14 Thread Vaseeharan Vinayagamoorthy via Gcc-patches
This patch fixes the section type conflict that I have been seeing. I have tested this patch using : Build: x86_64 Host: x86_64 Target: aarch64-none-linux-gnu On 08/12/2020, 12:52, "Gcc-patches on behalf of H.J. Lu via Gcc-patches" wrote: When definitions marked with used attribute and

V3 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-08 Thread H.J. Lu via Gcc-patches
When definitions marked with used attribute and unmarked definitions are placed in the section with the same name, switch to a new section if the SECTION_RETAIN bit doesn't match. gcc/ PR target/98146 * output.h (switch_to_section): Add a tree argument, default to

V2 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-04 Thread H.J. Lu via Gcc-patches
When definitions marked with used attribute and unmarked definitions are placed in the section with the same name, switch to a new section if the SECTION_RETAIN bit doesn't match. gcc/ PR target/98146 * output.h (switch_to_section): Add a tree argument, default to

Re: [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-04 Thread Jozef Lawrynowicz
Hi H.J., On Thu, Dec 03, 2020 at 04:06:51PM -0800, H.J. Lu via Gcc-patches wrote: > When definitions marked with used attribute and unmarked definitions are > placed in the same section, switch to a new section if the SECTION_RETAIN > bit doesn't match. GAS doesn't create separate sections for

[PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-03 Thread H.J. Lu via Gcc-patches
When definitions marked with used attribute and unmarked definitions are placed in the same section, switch to a new section if the SECTION_RETAIN bit doesn't match. gcc/ PR other/98121 * output.h (switch_to_section): Add a tree argument, default to nullptr. *