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
a49b692a
Commit
a49b692a
authored
Jan 12, 2011
by
Richard Henderson
Committed by
Richard Henderson
Jan 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mn10300: Auto-clobber the flags in asms.
From-SVN: r168725
parent
126b1483
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
gcc/ChangeLog
+3
-0
gcc/config/mn10300/mn10300.c
+17
-0
No files found.
gcc/ChangeLog
View file @
a49b692a
2011-01-12 Richard Henderson <rth@redhat.com>
* config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
(TARGET_MD_ASM_CLOBBERS): New.
* config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
(TARGET_DELEGITIMIZE_ADDRESS): New.
...
...
gcc/config/mn10300/mn10300.c
View file @
a49b692a
...
...
@@ -2716,6 +2716,20 @@ mn10300_conditional_register_usage (void)
fixed_regs
[
PIC_OFFSET_TABLE_REGNUM
]
=
call_used_regs
[
PIC_OFFSET_TABLE_REGNUM
]
=
1
;
}
/* Worker function for TARGET_MD_ASM_CLOBBERS.
We do this in the mn10300 backend to maintain source compatibility
with the old cc0-based compiler. */
static
tree
mn10300_md_asm_clobbers
(
tree
outputs
ATTRIBUTE_UNUSED
,
tree
inputs
ATTRIBUTE_UNUSED
,
tree
clobbers
)
{
clobbers
=
tree_cons
(
NULL_TREE
,
build_string
(
5
,
"EPSW"
),
clobbers
);
return
clobbers
;
}
/* Initialize the GCC target structure. */
...
...
@@ -2809,4 +2823,7 @@ mn10300_conditional_register_usage (void)
#undef TARGET_CONDITIONAL_REGISTER_USAGE
#define TARGET_CONDITIONAL_REGISTER_USAGE mn10300_conditional_register_usage
#undef TARGET_MD_ASM_CLOBBERS
#define TARGET_MD_ASM_CLOBBERS mn10300_md_asm_clobbers
struct
gcc_target
targetm
=
TARGET_INITIALIZER
;
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