This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix -mregnames


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]