From: Simon Guo <wei.guo.simon@gmail.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] selftests/powerpc: fix build error in powerpc ptrace selftests.
Date: Tue, 10 Oct 2017 04:18:47 +0800 [thread overview]
Message-ID: <20171009201847.GA9571@simonLocalRHEL7.x64> (raw)
In-Reply-To: <87lgkjwbxj.fsf@concordia.ellerman.id.au>
Hi Michael,
On Tue, Oct 10, 2017 at 09:10:32PM +1100, Michael Ellerman wrote:
> wei.guo.simon@gmail.com writes:
>
> > From: Simon Guo <wei.guo.simon@gmail.com>
> >
> > GCC 7 will take "r2" in clobber list as an error will it will get following
> > build errors for powerpc ptrace selftests even with -fno-pic option:
> > ptrace-tm-vsx.c: In function ‘tm_vsx’:
> > ptrace-tm-vsx.c:42:2: error: PIC register clobbered by ‘r2’ in ‘asm’
> > asm __volatile__(
> > ^~~
> > make[1]: *** [ptrace-tm-vsx] Error 1
> > ptrace-tm-spd-vsx.c: In function ‘tm_spd_vsx’:
> > ptrace-tm-spd-vsx.c:55:2: error: PIC register clobbered by ‘r2’ in ‘asm’
> > asm __volatile__(
> > ^~~
> > make[1]: *** [ptrace-tm-spd-vsx] Error 1
> > ptrace-tm-spr.c: In function ‘tm_spr’:
> > ptrace-tm-spr.c:46:2: error: PIC register clobbered by ‘r2’ in ‘asm’
> > asm __volatile__(
> > ^~~
> >
> > This patch fix the build error by removing "r2" out of clobber list.
>
> But do any of the blocks clobber r2? If so then it should be in the
> clobber list.
I see none of them clobbers r2, and neither does those assembly
functions which those blocks calls, like "loadvsx".
For the change on tools/testing/selftests/powerpc/ptrace/Makefile, it
can be ignored since I noticed recent commit a3c01050584da3 "selftests/powerpc:
Force ptrace tests to build -fno-pie". Please let me know if you want
a new v2 to remove that change on ptrace/Makefile.
Thanks,
- Simon
next prev parent reply other threads:[~2017-10-11 2:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-01 2:17 [PATCH] selftests/powerpc: fix build error in powerpc ptrace selftests wei.guo.simon
2017-10-10 10:10 ` Michael Ellerman
2017-10-09 20:18 ` Simon Guo [this message]
2017-12-12 11:39 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171009201847.GA9571@simonLocalRHEL7.x64 \
--to=wei.guo.simon@gmail.com \
--cc=khandual@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).