This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -mregnames
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Nov 2009 11:44:39 -0500
- Subject: Re: [PATCH] Fix -mregnames
- References: <20091125153805.GO22813@hs20-bc2-1.build.redhat.com>
On Wed, Nov 25, 2009 at 10:38 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> The power7 changes http://gcc.gnu.org/ml/gcc-patches/2009-06/msg01833.html
> broke -mregnames support. ?The problem is that TARGET_REGNAMES changed from
> a macro (defined for targets including sysv4.opt, not defined otherwise)
> to a variable, so #ifdef TARGET_REGNAMES in rs6000.c is always false.
> As the variable used for -mregnames in sysv4.opt is only defined on targets
> that include sysv4.opt, we need a different variable name and a macro.
>
> Ok for trunk?
>
> 2009-11-25 ?Jakub Jelinek ?<jakub@redhat.com>
>
> ? ? ? ?* config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
> ? ? ? ?* config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
>
> ? ? ? ?* gcc.target/powerpc/regnames-1.c: New test.
Okay.
Thanks, David