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
e5c90c23
Commit
e5c90c23
authored
Mar 05, 1992
by
Tom Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r395
parent
bf4400c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
gcc/regclass.c
+6
-10
gcc/varasm.c
+6
-5
No files found.
gcc/regclass.c
View file @
e5c90c23
...
@@ -326,18 +326,14 @@ fix_register (name, fixed, call_used)
...
@@ -326,18 +326,14 @@ fix_register (name, fixed, call_used)
/* Decode the name and update the primary form of
/* Decode the name and update the primary form of
the register info. */
the register info. */
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
((
i
=
decode_reg_name
(
name
))
>=
0
)
if
(
reg_names
[
i
][
0
]
&&
!
strcmp
(
reg_names
[
i
],
name
))
{
{
fixed_regs
[
i
]
=
fixed
;
fixed_regs
[
i
]
=
fixed
;
call_used_regs
[
i
]
=
call_used
;
call_used_regs
[
i
]
=
call_used
;
}
break
;
else
}
if
(
i
==
FIRST_PSEUDO_REGISTER
)
{
{
warning
(
"unknown register name: %s"
,
name
);
warning
(
"unknown register name: %s"
,
name
);
return
;
}
}
}
}
...
...
gcc/varasm.c
View file @
e5c90c23
...
@@ -191,7 +191,8 @@ make_function_rtl (decl)
...
@@ -191,7 +191,8 @@ make_function_rtl (decl)
/* Decode an `asm' spec for a declaration as a register name.
/* Decode an `asm' spec for a declaration as a register name.
Return the register number, or -1 if nothing specified,
Return the register number, or -1 if nothing specified,
or -2 if the name is not a register. */
or -2 if the name is not a register. Accept an exact spelling,
a decimal number, or an optional prefix of '%' or '#'. */
int
int
decode_reg_name
(
asmspec
)
decode_reg_name
(
asmspec
)
...
@@ -218,7 +219,7 @@ decode_reg_name (asmspec)
...
@@ -218,7 +219,7 @@ decode_reg_name (asmspec)
if
(
reg_names
[
i
][
0
]
&&
!
strcmp
(
asmspec
,
reg_names
[
i
]))
if
(
reg_names
[
i
][
0
]
&&
!
strcmp
(
asmspec
,
reg_names
[
i
]))
return
i
;
return
i
;
if
(
asmspec
[
0
]
==
'%'
)
if
(
asmspec
[
0
]
==
'%'
||
asmspec
[
0
]
==
'#'
)
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
reg_names
[
i
][
0
]
&&
!
strcmp
(
asmspec
+
1
,
reg_names
[
i
]))
if
(
reg_names
[
i
][
0
]
&&
!
strcmp
(
asmspec
+
1
,
reg_names
[
i
]))
return
i
;
return
i
;
...
@@ -232,7 +233,7 @@ decode_reg_name (asmspec)
...
@@ -232,7 +233,7 @@ decode_reg_name (asmspec)
if
(
!
strcmp
(
asmspec
,
table
[
i
].
name
))
if
(
!
strcmp
(
asmspec
,
table
[
i
].
name
))
return
table
[
i
].
number
;
return
table
[
i
].
number
;
if
(
asmspec
[
0
]
==
'%'
)
if
(
asmspec
[
0
]
==
'%'
||
asmspec
[
0
]
==
'#'
)
for
(
i
=
0
;
i
<
sizeof
(
table
)
/
sizeof
(
table
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
table
)
/
sizeof
(
table
[
0
]);
i
++
)
if
(
!
strcmp
(
asmspec
+
1
,
table
[
i
].
name
))
if
(
!
strcmp
(
asmspec
+
1
,
table
[
i
].
name
))
return
table
[
i
].
number
;
return
table
[
i
].
number
;
...
@@ -499,9 +500,9 @@ assemble_start_function (decl, fnname)
...
@@ -499,9 +500,9 @@ assemble_start_function (decl, fnname)
#endif
#endif
#ifdef DBX_DEBUGGING_INFO
#ifdef DBX_DEBUGGING_INFO
/* Output
SDB
definition of the function. */
/* Output
DBX
definition of the function. */
if
(
write_symbols
==
DBX_DEBUG
)
if
(
write_symbols
==
DBX_DEBUG
)
dbxout_begin_function
();
dbxout_begin_function
(
decl
);
#endif
#endif
/* Make function name accessible from other files, if appropriate. */
/* Make function name accessible from other files, if appropriate. */
...
...
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