The testcase will need a slight adjustment, as currently it fails on powerpc64 with -m32 testing. Working on a fix.
Bill On Thu, 2016-01-21 at 12:28 -0500, David Edelsohn wrote: > On Thu, Jan 21, 2016 at 11:48 AM, Bill Schmidt > <wschm...@linux.vnet.ibm.com> wrote: > > Hi, > > > > Anton Blanchard proposed a fix to his own bug report in > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63354, but never submitted > > the patch upstream. I've added a formal test case and am submitting on > > his behalf. > > > > The patch simply ensures that we don't stack a frame for leaf procedures > > when called with -pg -mprofile-kernel. The automatically generated > > calls to _mcount occur prior to the prolog and do not require us to > > stack a frame. > > > > Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no > > regressions. Is this ok for trunk? > > > > Thanks, > > Bill > > > > > > [gcc] > > > > 2016-01-21 Anton Blanchard <an...@samba.org> > > Bill Schmidt <wschm...@linux.vnet.ibm.com> > > > > PR target/63354 > > * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New > > #define. > > * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New > > function. > > > > [gcc/testsuite] > > > > 2016-01-21 Anton Blanchard <an...@samba.org> > > Bill Schmidt <wschm...@linux.vnet.ibm.com> > > > > PR target/63354 > > * gcc.target/powerpc/pr63354.c: New test. > > Okay. > > Thanks, David >