This is to track the request of backporting r206650 to RHEL7 gcc. This patch disables emitting profiling in functions marked with a special attribute.
The linked testcase successfully passes with gcc-4.8.5-16.el7.{ppc64,ppc64le} while reproducing the issue with older releases. VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2094