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
e96eb215
Commit
e96eb215
authored
Jul 22, 2002
by
Jakub Jelinek
Committed by
Jakub Jelinek
Jul 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
From-SVN: r55646
parent
cf3c4f56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gcc/ChangeLog
+4
-0
gcc/c-decl.c
+1
-0
No files found.
gcc/ChangeLog
View file @
e96eb215
2002-07-22 Jakub Jelinek <jakub@redhat.com>
2002-07-22 Jakub Jelinek <jakub@redhat.com>
* c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
2002-07-22 Jakub Jelinek <jakub@redhat.com>
* c-decl.c (build_compound_literal): Defer compound literal decls
* c-decl.c (build_compound_literal): Defer compound literal decls
until until file end to emit them only if they are actually used.
until until file end to emit them only if they are actually used.
...
...
gcc/c-decl.c
View file @
e96eb215
...
@@ -3647,6 +3647,7 @@ build_compound_literal (type, init)
...
@@ -3647,6 +3647,7 @@ build_compound_literal (type, init)
DECL_CONTEXT
(
decl
)
=
current_function_decl
;
DECL_CONTEXT
(
decl
)
=
current_function_decl
;
TREE_USED
(
decl
)
=
1
;
TREE_USED
(
decl
)
=
1
;
TREE_TYPE
(
decl
)
=
type
;
TREE_TYPE
(
decl
)
=
type
;
TREE_READONLY
(
decl
)
=
TREE_READONLY
(
type
);
store_init_value
(
decl
,
init
);
store_init_value
(
decl
,
init
);
if
(
TREE_CODE
(
type
)
==
ARRAY_TYPE
&&
!
COMPLETE_TYPE_P
(
type
))
if
(
TREE_CODE
(
type
)
==
ARRAY_TYPE
&&
!
COMPLETE_TYPE_P
(
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