Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9e06e321
Commit
9e06e321
authored
Oct 12, 1992
by
James Van Artsdalen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(PRINT_REG): Make register name arrays static within this macro.
From-SVN: r2401
parent
4805ff59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
gcc/config/i386/i386.h
+8
-15
No files found.
gcc/config/i386/i386.h
View file @
9e06e321
...
@@ -1280,8 +1280,7 @@ extern struct rtx_def *(*i386_compare_gen)(), *(*i386_compare_gen_eq)();
...
@@ -1280,8 +1280,7 @@ extern struct rtx_def *(*i386_compare_gen)(), *(*i386_compare_gen_eq)();
For non floating point regs, the following are the HImode names.
For non floating point regs, the following are the HImode names.
For float regs, the stack top is sometimes referred to as "%st(0)"
For float regs, the stack top is sometimes referred to as "%st(0)"
instead of just "%st". PRINT_REG in i386.c handles with with the
instead of just "%st". PRINT_REG handles this with the "y" code. */
"y" code. */
#define HI_REGISTER_NAMES \
#define HI_REGISTER_NAMES \
{"ax","dx","cx","bx","si","di","bp","sp", \
{"ax","dx","cx","bx","si","di","bp","sp", \
...
@@ -1461,13 +1460,11 @@ do { union { float f; long l;} tem; \
...
@@ -1461,13 +1460,11 @@ do { union { float f; long l;} tem; \
If CODE is 'h', pretend the reg is the `high' byte register.
If CODE is 'h', pretend the reg is the `high' byte register.
If CODE is 'y', print "st(0)" instead of "st", if the reg is stack op. */
If CODE is 'y', print "st(0)" instead of "st", if the reg is stack op. */
extern
char
*
hi_reg_name
[];
extern
char
*
qi_reg_name
[];
extern
char
*
qi_high_reg_name
[];
#define PRINT_REG(X, CODE, FILE) \
#define PRINT_REG(X, CODE, FILE) \
do { if (REGNO (X) == ARG_POINTER_REGNUM) \
do { static char *hi_reg_name[] = HI_REGISTER_NAMES; \
abort (); \
static char *qi_reg_name[] = QI_REGISTER_NAMES; \
static char *qi_high_reg_name[] = QI_HIGH_REGISTER_NAMES; \
if (REGNO (X) == ARG_POINTER_REGNUM) abort (); \
fprintf (FILE, "%s", RP); \
fprintf (FILE, "%s", RP); \
switch ((CODE == 'w' ? 2 \
switch ((CODE == 'w' ? 2 \
: CODE == 'b' ? 1 \
: CODE == 'b' ? 1 \
...
@@ -1478,13 +1475,9 @@ extern char *qi_high_reg_name[];
...
@@ -1478,13 +1475,9 @@ extern char *qi_high_reg_name[];
{ \
{ \
case 3: \
case 3: \
if (STACK_TOP_P (X)) \
if (STACK_TOP_P (X)) \
{ \
{ fputs ("st(0)", FILE); break; } \
fputs ("st(0)", FILE); \
case 4: case 8: \
break; \
if (! FP_REG_P (X)) fputs ("e", FILE); \
} \
case 4: \
case 8: \
if (!FP_REG_P (X)) fputs ("e", FILE); \
case 2: \
case 2: \
fputs (hi_reg_name[REGNO (X)], FILE); \
fputs (hi_reg_name[REGNO (X)], FILE); \
break; \
break; \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment