on 2023/7/20 20:34, Richard Sandiford wrote: > "Kewen.Lin" <li...@linux.ibm.com> writes: >> Hi, >> >> As PR110729 reported, there was one issue for .section >> __patchable_function_entries with -ffunction-sections, that >> is we put the same symbol as link_to section symbol for all >> functions wrongly. The commit r13-4294 for PR99889 has >> fixed this with the corresponding label LPFE* which sits in >> the function_section. >> >> As Fangrui suggested[1], this patch is to add a bit more test >> coverage. I didn't find a good way to check all linked_to >> symbols are different, so I checked for LPFE[012] here. >> >> [1] https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624866.html >> >> Tested well on x86_64-redhat-linux, powerpc64-linux-gnu >> P7/P8/P9 and powerpc64le-linux-gnu P9/P10. >> >> Is it ok for trunk? >> >> BR, >> Kewen >> ----- >> PR testsuite/110729 >> >> gcc/testsuite/ChangeLog: >> >> * gcc.dg/pr110729.c: New test. > > OK, thanks.
Thanks Richard! Pushed as r14-2693. BR, Kewen