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
3b6c7a7d
Commit
3b6c7a7d
authored
Sep 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dbxout_symbol): For anonymous enum, output type anyway.
From-SVN: r2246
parent
f979c996
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
gcc/dbxout.c
+18
-0
No files found.
gcc/dbxout.c
View file @
3b6c7a7d
...
...
@@ -1445,6 +1445,7 @@ dbxout_symbol (decl, local)
{
int
tag_needed
=
1
;
int
did_output
=
0
;
if
(
DECL_NAME
(
decl
))
{
...
...
@@ -1504,6 +1505,7 @@ dbxout_symbol (decl, local)
dbxout_type
(
type
,
1
,
0
);
dbxout_finish_symbol
(
decl
);
did_output
=
1
;
}
if
(
tag_needed
&&
TYPE_NAME
(
type
)
!=
0
...
...
@@ -1527,6 +1529,22 @@ dbxout_symbol (decl, local)
IDENTIFIER_POINTER
(
name
));
dbxout_type
(
type
,
1
,
0
);
dbxout_finish_symbol
(
NULL_TREE
);
did_output
=
1
;
}
/* If an enum type has no name, it cannot be referred to,
but we must output it anyway, since the enumeration constants
can be referred to. */
if
(
!
did_output
&&
TREE_CODE
(
type
)
==
ENUMERAL_TYPE
)
{
current_sym_code
=
DBX_TYPE_DECL_STABS_CODE
;
current_sym_value
=
0
;
current_sym_addr
=
0
;
current_sym_nchars
=
2
;
fprintf
(
asmfile
,
"%s
\"
:T"
,
ASM_STABS_OP
);
dbxout_type
(
type
,
1
,
0
);
dbxout_finish_symbol
(
NULL_TREE
);
}
/* Prevent duplicate output of a typedef. */
...
...
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