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
b81cdf54
Commit
b81cdf54
authored
Nov 21, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_constant): When eliminating conversions, treat ARRAY_TYPE like
a record. From-SVN: r8546
parent
ac7400c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/varasm.c
+3
-2
No files found.
gcc/varasm.c
View file @
b81cdf54
...
...
@@ -3390,10 +3390,11 @@ output_constant (exp, size)
return
;
/* Eliminate the NON_LVALUE_EXPR_EXPR that makes a cast not be an lvalue.
That way we get the constant (we hope) inside it. Also, strip
off any NOP_EXPR that converts between two record or union
types. */
That way we get the constant (we hope) inside it. Also, strip
off any
NOP_EXPR that converts between two record, union, or array
types. */
while
((
TREE_CODE
(
exp
)
==
NOP_EXPR
&&
(
TREE_TYPE
(
exp
)
==
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
ARRAY_TYPE
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
UNION_TYPE
||
TREE_CODE
(
TREE_TYPE
(
exp
))
==
QUAL_UNION_TYPE
))
...
...
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