https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121455
Bug ID: 121455
Summary: darwin_mergeable_constant_section and
machopic_select_rtx_section should be improved to
support non aligned objects
Product: gcc
Version: 14.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: *-*-darwin
Similarly to how elf mergeable section support is being improved, macho/darwin
could be done similarly.
That is non-aligned objects could be placed in the __TEXT,__literalN sections
(where N is 4, 8, and 16).
I will attach a patch to test in a little bit; it will depend on patches for PR
121444, and PR 121394 since those also fix the middle-ends parts for mergeable
objects.