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
58add97a
Commit
58add97a
authored
May 11, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_decl): Don't output DIE for struct or union type
with no name or with ERROR_MARK for the fields. From-SVN: r9619
parent
e100a3bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gcc/dwarfout.c
+11
-0
No files found.
gcc/dwarfout.c
View file @
58add97a
...
...
@@ -4359,6 +4359,17 @@ output_decl (decl, containing_scope)
if
(
TREE_CODE
(
decl
)
==
ERROR_MARK
)
return
;
/* If a structure is declared within an initialization, e.g. as the
operand of a sizeof, then it will not have a name. We don't want
to output a DIE for it, as the tree nodes are in the temporary obstack */
if
((
TREE_CODE
(
TREE_TYPE
(
decl
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
decl
))
==
UNION_TYPE
)
&&
((
DECL_NAME
(
decl
)
==
0
&&
TYPE_NAME
(
TREE_TYPE
(
decl
))
==
0
)
||
(
TYPE_FIELDS
(
TREE_TYPE
(
decl
))
&&
(
TREE_CODE
(
TYPE_FIELDS
(
TREE_TYPE
(
decl
)))
==
ERROR_MARK
))))
return
;
/* If this ..._DECL node is marked to be ignored, then ignore it.
But don't ignore a function definition, since that would screw
up our count of blocks, and that it turn will completely screw up the
...
...
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