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
1e193337
Commit
1e193337
authored
Oct 30, 1999
by
Richard Henderson
Committed by
Richard Henderson
Oct 30, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* genrecog.c (write_switch): Check for duplicate CODE cases.
From-SVN: r30276
parent
cb2ec151
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ChangeLog
+4
-0
gcc/genrecog.c
+6
-2
No files found.
gcc/ChangeLog
View file @
1e193337
Sat
Oct
30
14
:
38
:
22
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
genrecog
.
c
(
write_switch
)
:
Check
for
duplicate
CODE
cases
.
Sat
Oct
30
14
:
31
:
48
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
Sat
Oct
30
14
:
31
:
48
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
ggc
-
common
.
c
:
Update
pre
-
function
commentary
.
*
ggc
-
common
.
c
:
Update
pre
-
function
commentary
.
...
...
gcc/genrecog.c
View file @
1e193337
...
@@ -1695,13 +1695,14 @@ write_switch (start, depth)
...
@@ -1695,13 +1695,14 @@ write_switch (start, depth)
{
{
char
codemap
[
NUM_RTX_CODE
];
char
codemap
[
NUM_RTX_CODE
];
struct
decision
*
ret
;
struct
decision
*
ret
;
RTX_CODE
code
;
memset
(
codemap
,
0
,
sizeof
(
codemap
));
memset
(
codemap
,
0
,
sizeof
(
codemap
));
printf
(
" switch (GET_CODE (x%d))
\n
{
\n
"
,
depth
);
printf
(
" switch (GET_CODE (x%d))
\n
{
\n
"
,
depth
);
code
=
p
->
tests
->
u
.
code
;
do
do
{
{
RTX_CODE
code
=
p
->
tests
->
u
.
code
;
printf
(
" case "
);
printf
(
" case "
);
print_code
(
code
);
print_code
(
code
);
printf
(
":
\n
goto L%d;
\n
"
,
p
->
success
.
first
->
number
);
printf
(
":
\n
goto L%d;
\n
"
,
p
->
success
.
first
->
number
);
...
@@ -1710,7 +1711,10 @@ write_switch (start, depth)
...
@@ -1710,7 +1711,10 @@ write_switch (start, depth)
codemap
[
code
]
=
1
;
codemap
[
code
]
=
1
;
p
=
p
->
next
;
p
=
p
->
next
;
}
}
while
(
p
&&
p
->
tests
->
type
==
DT_code
&&
!
p
->
tests
->
next
);
while
(
p
&&
!
p
->
tests
->
next
&&
p
->
tests
->
type
==
DT_code
&&
!
codemap
[
code
=
p
->
tests
->
u
.
code
]);
/* If P is testing a predicate that we know about and we haven't
/* If P is testing a predicate that we know about and we haven't
seen any of the codes that are valid for the predicate, we can
seen any of the codes that are valid for the predicate, we can
...
...
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