Re: [PATCH] Disable section anchors for VAR_DECLs if -fdata-sections

2021-04-30 Thread Richard Sandiford via Gcc-patches
David Edelsohn via Gcc-patches writes: > -fdata-sections places data symbols into their own, unique, named > sections. > -fsection-anchors create an anchor to access neighboring symbols > within a section. > > When both are enabled, a separate section anchor is created for each >

[PATCH] Disable section anchors for VAR_DECLs if -fdata-sections

2021-04-29 Thread David Edelsohn via Gcc-patches
-fdata-sections places data symbols into their own, unique, named sections. -fsection-anchors create an anchor to access neighboring symbols within a section. When both are enabled, a separate section anchor is created for each symbol, which provides no benefit. This patch