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
4639555c
Commit
4639555c
authored
Sep 30, 1996
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search modes in reverse order to avoid problems with EXTRA_CC_MODES
From-SVN: r12873
parent
86944ea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
gcc/genopinit.c
+8
-6
No files found.
gcc/genopinit.c
View file @
4639555c
/* Generate code to initialize optabs from machine description.
Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
Copyright (C) 1993, 1994, 1995
, 1996
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -185,9 +185,7 @@ gen_insn (insn)
/* We have to be concerned about matching "gt" and
missing "gtu", e.g., so verify we have reached the
end of thing we are to match. We do not have this
problem with modes since no mode is a prefix of
another. */
end of thing we are to match. */
if
(
*
p
==
0
&&
*
q
==
0
&&
rtx_class
[
op
]
==
'<'
)
break
;
}
...
...
@@ -199,7 +197,11 @@ gen_insn (insn)
break
;
case
'a'
:
case
'b'
:
for
(
i
=
0
;
i
<
(
int
)
MAX_MACHINE_MODE
;
i
++
)
/* This loop will stop at the first prefix match, so
look through the modes in reverse order, in case
EXTRA_CC_MODES was used and CC is a prefix of the
CC modes (as it should be). */
for
(
i
=
((
int
)
MAX_MACHINE_MODE
)
-
1
;
i
>=
0
;
i
--
)
{
for
(
p
=
mode_name
[
i
],
q
=
np
;
*
p
;
p
++
,
q
++
)
if
(
tolower
(
*
p
)
!=
*
q
)
...
...
@@ -211,7 +213,7 @@ gen_insn (insn)
break
;
}
if
(
i
==
(
int
)
MAX_MACHINE_MODE
)
if
(
i
<
0
)
matches
=
0
;
else
if
(
*
pp
==
'a'
)
m1
=
i
,
np
+=
strlen
(
mode_name
[
i
]);
...
...
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