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
b65d6744
Commit
b65d6744
authored
15 years ago
by
Dave Korn
Committed by
Michael Meissner
15 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix from Dave Korn in case a backend does not declare any define_register_constraints
From-SVN: r147020
parent
70ccbedb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
gcc/ChangeLog
+8
-0
gcc/genpreds.c
+6
-2
gcc/ira.c
+1
-1
No files found.
gcc/ChangeLog
View file @
b65d6744
2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
* ira.c (setup_cover_and_important_classes): Use safe macro
REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
directly.
* genpreds.c (write_tm_preds_h): Output suitable definition of
REG_CLASS_FOR_CONSTRAINT.
2009-04-30 Rafael Avila de Espindola <espindola@google.com>
* alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
...
...
This diff is collapsed.
Click to expand it.
gcc/genpreds.c
View file @
b65d6744
...
...
@@ -1280,9 +1280,13 @@ write_tm_preds_h (void)
puts
(
"extern enum reg_class regclass_for_constraint "
"(enum constraint_num);
\n
"
"#define REG_CLASS_FROM_CONSTRAINT(c_,s_)
\\\n
"
" regclass_for_constraint (lookup_constraint (s_))
\n
"
);
" regclass_for_constraint (lookup_constraint (s_))
\n
"
"#define REG_CLASS_FOR_CONSTRAINT(x_)
\\\n
"
" regclass_for_constraint (x_)
\n
"
);
else
puts
(
"#define REG_CLASS_FROM_CONSTRAINT(c_,s_) NO_REGS"
);
puts
(
"#define REG_CLASS_FROM_CONSTRAINT(c_,s_) NO_REGS
\n
"
"#define REG_CLASS_FOR_CONSTRAINT(x_)
\\\n
"
" NO_REGS
\n
"
);
if
(
have_const_int_constraints
)
puts
(
"extern bool insn_const_int_ok_for_constraint "
"(HOST_WIDE_INT, enum constraint_num);
\n
"
...
...
This diff is collapsed.
Click to expand it.
gcc/ira.c
View file @
b65d6744
...
...
@@ -756,7 +756,7 @@ setup_cover_and_important_classes (void)
continue
;
#ifdef CONSTRAINT_NUM_DEFINED_P
for
(
j
=
0
;
j
<
CONSTRAINT__LIMIT
;
j
++
)
if
((
int
)
regclass_for_constraint
((
enum
constraint_num
)
j
)
==
i
)
if
((
int
)
REG_CLASS_FOR_CONSTRAINT
((
enum
constraint_num
)
j
)
==
i
)
break
;
if
(
j
<
CONSTRAINT__LIMIT
)
{
...
...
This diff is collapsed.
Click to expand it.
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