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
7b2b3f1f
Commit
7b2b3f1f
authored
Oct 29, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_constant_pool): Labels can be deleted by being turned into
NOTEs, not just have INSN_DELETED_P. From-SVN: r2653
parent
6ba17bb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/varasm.c
+7
-3
No files found.
gcc/varasm.c
View file @
7b2b3f1f
...
@@ -2494,11 +2494,15 @@ output_constant_pool (fnname, fndecl)
...
@@ -2494,11 +2494,15 @@ output_constant_pool (fnname, fndecl)
/* See if X is a LABEL_REF (or a CONST referring to a LABEL_REF)
/* See if X is a LABEL_REF (or a CONST referring to a LABEL_REF)
whose CODE_LABEL has been deleted. This can occur if a jump table
whose CODE_LABEL has been deleted. This can occur if a jump table
is eliminated by optimization. If so, write a constant of zero
is eliminated by optimization. If so, write a constant of zero
instead. */
instead. Note that this can also happen by turning the
if
((
GET_CODE
(
x
)
==
LABEL_REF
&&
INSN_DELETED_P
(
XEXP
(
x
,
0
)))
CODE_LABEL into a NOTE. */
if
(((
GET_CODE
(
x
)
==
LABEL_REF
&&
(
INSN_DELETED_P
(
XEXP
(
x
,
0
))
||
GET_CODE
(
XEXP
(
x
,
0
))
==
NOTE
)))
||
(
GET_CODE
(
x
)
==
CONST
&&
GET_CODE
(
XEXP
(
x
,
0
))
==
PLUS
||
(
GET_CODE
(
x
)
==
CONST
&&
GET_CODE
(
XEXP
(
x
,
0
))
==
PLUS
&&
GET_CODE
(
XEXP
(
XEXP
(
x
,
0
),
0
))
==
LABEL_REF
&&
GET_CODE
(
XEXP
(
XEXP
(
x
,
0
),
0
))
==
LABEL_REF
&&
INSN_DELETED_P
(
XEXP
(
XEXP
(
XEXP
(
x
,
0
),
0
),
0
))))
&&
(
INSN_DELETED_P
(
XEXP
(
XEXP
(
XEXP
(
x
,
0
),
0
),
0
))
||
GET_CODE
(
XEXP
(
XEXP
(
XEXP
(
x
,
0
),
0
),
0
))
==
NOTE
)))
x
=
const0_rtx
;
x
=
const0_rtx
;
/* First switch to correct section. */
/* First switch to correct section. */
...
...
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