i386.c (print_reg): Abort if REGNO (x) is a virtual register, but only if file == asm_out_file.

* config/i386/i386.c (print_reg): Abort if REGNO (x) is a
	virtual register, but only if file == asm_out_file.
	* config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
	for ARG_POINTER_REGNUM.

From-SVN: r72712
This commit is contained in:
Zack Weinberg 2003-10-20 18:32:51 +00:00 committed by Zack Weinberg
parent d1d3865f99
commit 480feac023
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2003-10-20 Zack Weinberg <zack@codesourcery.com>
* config/i386/i386.c (print_reg): Abort if REGNO (x) is a
virtual register, but only if file == asm_out_file.
* config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
for ARG_POINTER_REGNUM.
2003-10-20 Zack Weinberg <zack@codesourcery.com>
* c-common.c (registered_builtin_types): New static.

View File

@ -6884,6 +6884,13 @@ put_condition_code (enum rtx_code code, enum machine_mode mode, int reverse,
void
print_reg (rtx x, int code, FILE *file)
{
if ((REGNO (x) == ARG_POINTER_REGNUM
|| REGNO (x) == FRAME_POINTER_REGNUM
|| REGNO (x) == FLAGS_REG
|| REGNO (x) == FPSR_REG)
&& file == asm_out_file)
abort ();
if (ASSEMBLER_DIALECT == ASM_ATT || USER_LABEL_PREFIX[0] == 0)
putc ('%', file);

View File

@ -2747,8 +2747,8 @@ do { \
#undef HI_REGISTER_NAMES
#define HI_REGISTER_NAMES \
{"ax","dx","cx","bx","si","di","bp","sp", \
"st","st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)","", \
"flags","fpsr", "dirflag", "frame", \
"st","st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)", \
"argp", "flags", "fpsr", "dirflag", "frame", \
"xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7", \
"mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7" , \
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \