Attached is a patch that eliminates the unused stack frame allocated by gcc 5 with -pg -mprofile-kernel on powepc64le and brings the code into parity with previous gcc versions. The patch doesn't do anything to change the emitted code when -mprofile-kernel is used without -pg. Since the former option isn't fully documented (as noted in pr 65372) it's unclear what effect it should be expected to have without -pg. The patch was tested on {powerpc64,powerpc64le}-linux. Martin