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
87e4ee91
Commit
87e4ee91
authored
Feb 11, 2002
by
Kazu Hirata
Committed by
Kazu Hirata
Feb 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.c (print_operand): Remove redundant code.
From-SVN: r49666
parent
9c188705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
+24
-16
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.c
+20
-16
No files found.
gcc/ChangeLog
View file @
87e4ee91
2002-02-10 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (print_operand): Remove redundant code.
2002-02-10 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
* config/h8300/h8300.c (byte_reg): Make it static.
...
...
gcc/config/h8300/h8300.c
View file @
87e4ee91
...
...
@@ -1213,22 +1213,26 @@ print_operand (file, x, code)
break
;
case
MEM
:
fprintf
(
file
,
"@"
);
output_address
(
XEXP
(
x
,
0
));
/* If this is an 'R' operand (reference into the 8-bit
area), then specify a symbolic address as "foo:8",
otherwise if operand is still in eight bit section, use
"foo:16". */
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
SYMBOL_REF
&&
SYMBOL_REF_FLAG
(
XEXP
(
x
,
0
)))
fprintf
(
file
,
(
code
==
'R'
?
":8"
:
":16"
));
else
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
SYMBOL_REF
&&
TINY_DATA_NAME_P
(
XSTR
(
XEXP
(
x
,
0
),
0
)))
fprintf
(
file
,
":16"
);
else
if
((
code
==
'R'
)
&&
EIGHTBIT_CONSTANT_ADDRESS_P
(
XEXP
(
x
,
0
)))
fprintf
(
file
,
":8"
);
{
rtx
addr
=
XEXP
(
x
,
0
);
fprintf
(
file
,
"@"
);
output_address
(
addr
);
/* If this is an 'R' operand (reference into the 8-bit
area), then specify a symbolic address as "foo:8",
otherwise if operand is still in eight bit section, use
"foo:16". */
if
(
GET_CODE
(
addr
)
==
SYMBOL_REF
&&
SYMBOL_REF_FLAG
(
addr
))
fprintf
(
file
,
(
code
==
'R'
?
":8"
:
":16"
));
else
if
(
GET_CODE
(
addr
)
==
SYMBOL_REF
&&
TINY_DATA_NAME_P
(
XSTR
(
addr
,
0
)))
fprintf
(
file
,
":16"
);
else
if
((
code
==
'R'
)
&&
EIGHTBIT_CONSTANT_ADDRESS_P
(
addr
))
fprintf
(
file
,
":8"
);
}
break
;
case
CONST_INT
:
...
...
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