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
b4d4e33d
Commit
b4d4e33d
authored
Oct 19, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finish_decl): After preserve_initializer call, set
TREE_PERMANENT bit in initializer. From-SVN: r5800
parent
2a23b99d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
gcc/c-decl.c
+8
-1
No files found.
gcc/c-decl.c
View file @
b4d4e33d
...
@@ -3565,7 +3565,14 @@ finish_decl (decl, init, asmspec_tree)
...
@@ -3565,7 +3565,14 @@ finish_decl (decl, init, asmspec_tree)
initializer instead of discarding it so that we can optimize
initializer instead of discarding it so that we can optimize
references to it. */
references to it. */
if
(
TREE_STATIC
(
decl
)
&&
TREE_READONLY
(
decl
))
if
(
TREE_STATIC
(
decl
)
&&
TREE_READONLY
(
decl
))
preserve_initializer
();
{
preserve_initializer
();
/* Hack? Set the permanent bit for something that is permanent,
but not on the permenent obstack, so as to convince
output_constant_def to make its rtl on the permanent
obstack. */
TREE_PERMANENT
(
DECL_INITIAL
(
decl
))
=
1
;
}
else
else
DECL_INITIAL
(
decl
)
=
error_mark_node
;
DECL_INITIAL
(
decl
)
=
error_mark_node
;
}
}
...
...
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