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
06be9173
Commit
06be9173
authored
Jan 14, 2000
by
Nick Clifton
Committed by
Nick Clifton
Jan 14, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If RTL checking is enabled, make sure that emit_insn is not used to emit a
jump insn. From-SVN: r31420
parent
711d877c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
gcc/ChangeLog
+8
-0
gcc/emit-rtl.c
+11
-0
gcc/jump.c
+1
-1
No files found.
gcc/ChangeLog
View file @
06be9173
2000
-
01
-
14
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
emit
-
rtl
.
c
(
emit_insn
)
:
If
checking
is
enabled
,
make
sure
that
this
function
has
not
been
used
to
emit
a
jump
instruction
.
*
jump
.
c
(
return_jump_1
)
:
Cope
with
being
passed
a
null
rtx
.
2000
-
01
-
14
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
2000
-
01
-
14
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
eh
-
common
.
h
:
PROTO
->
PARAMS
.
*
eh
-
common
.
h
:
PROTO
->
PARAMS
.
...
...
gcc/emit-rtl.c
View file @
06be9173
...
@@ -2948,6 +2948,17 @@ emit_insn (pattern)
...
@@ -2948,6 +2948,17 @@ emit_insn (pattern)
add_insn
(
insn
);
add_insn
(
insn
);
}
}
#ifdef ENABLE_RTL_CHECKING
if
(
insn
&&
(
returnjump_p
(
insn
)
||
(
GET_CODE
(
insn
)
==
SET
&&
SET_DEST
(
insn
)
==
pc_rtx
)))
{
warning
(
"ICE: emit_insn used where emit_jump_insn needed:
\n
"
);
debug_rtx
(
insn
);
}
#endif
return
insn
;
return
insn
;
}
}
...
...
gcc/jump.c
View file @
06be9173
...
@@ -3757,7 +3757,7 @@ returnjump_p_1 (loc, data)
...
@@ -3757,7 +3757,7 @@ returnjump_p_1 (loc, data)
void
*
data
ATTRIBUTE_UNUSED
;
void
*
data
ATTRIBUTE_UNUSED
;
{
{
rtx
x
=
*
loc
;
rtx
x
=
*
loc
;
return
GET_CODE
(
x
)
==
RETURN
;
return
x
&&
GET_CODE
(
x
)
==
RETURN
;
}
}
int
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