sysv4.opt (mregnames): Change Var to rs6000_regnames.

* 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.

From-SVN: r154653
This commit is contained in:
Jakub Jelinek 2009-11-25 21:23:20 +01:00 committed by Jakub Jelinek
parent 72b2bc46f5
commit fc07d9e3cb
5 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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.
* print-rtl.c (print_rtx): When printing newline, append
print_rtx_head and indentation after the newline.

View File

@ -63,6 +63,7 @@ extern enum rs6000_sdata_type rs6000_sdata;
#define TARGET_NO_PROTOTYPE (! TARGET_PROTOTYPE)
#define TARGET_NO_TOC (! TARGET_TOC)
#define TARGET_NO_EABI (! TARGET_EABI)
#define TARGET_REGNAMES rs6000_regnames
#ifdef HAVE_AS_REL16
#undef TARGET_SECURE_PLT

View File

@ -91,7 +91,7 @@ Target Report Var(TARGET_NO_BITFIELD_WORD)
Allow bit-fields to cross word boundaries
mregnames
Target Var(TARGET_REGNAMES)
Target Var(rs6000_regnames)
Use alternate register names
;; This option does nothing and only exists because the compiler

View File

@ -1,3 +1,7 @@
2009-11-25 Jakub Jelinek <jakub@redhat.com>
* gcc.target/powerpc/regnames-1.c: New test.
2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>

View File

@ -0,0 +1,8 @@
/* { dg-do compile { target powerpc*-*-linux* } */
/* { dg-options "-mregnames" } */
register double f17 asm ("f17");
double foo (void)
{
return f17;
}