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
310bbbf4
Commit
310bbbf4
authored
Mar 10, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(copy_constant): Copy operand of ADDR_EXPR if it is a constant.
From-SVN: r9164
parent
31c97f6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/varasm.c
+9
-3
No files found.
gcc/varasm.c
View file @
310bbbf4
...
...
@@ -2568,12 +2568,18 @@ copy_constant (exp)
{
switch
(
TREE_CODE
(
exp
))
{
case
ADDR_EXPR
:
/* For ADDR_EXPR, we do not want to copy the decl whose address
is requested. We do want to copy constants though. */
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
TREE_OPERAND
(
exp
,
0
)))
==
'c'
)
return
build1
(
TREE_CODE
(
exp
),
TREE_TYPE
(
exp
),
copy_constant
(
TREE_OPERAND
(
exp
,
0
)));
else
return
copy_node
(
exp
);
case
INTEGER_CST
:
case
REAL_CST
:
case
STRING_CST
:
case
ADDR_EXPR
:
/* For ADDR_EXPR, we do not want to copy the decl
whose address is requested. */
return
copy_node
(
exp
);
case
COMPLEX_CST
:
...
...
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