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
edbe40ea
Commit
edbe40ea
authored
Jun 10, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1186
parent
f3c3d3df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
gcc/dbxout.c
+29
-0
No files found.
gcc/dbxout.c
View file @
edbe40ea
...
@@ -1371,6 +1371,33 @@ dbxout_symbol (decl, local)
...
@@ -1371,6 +1371,33 @@ dbxout_symbol (decl, local)
/* Nonzero means we must output a tag as well as a typedef. */
/* Nonzero means we must output a tag as well as a typedef. */
tag_needed
=
0
;
tag_needed
=
0
;
/* Handle the case of a C++ structure or union
where the TYPE_NAME is a TYPE_DECL
which gives both a typedef name and a tag. */
/* dbx requires the tag first and the typedef second.
??? there is a bug here. It generates spurious tags
for C code. */
if
((
TREE_CODE
(
type
)
==
RECORD_TYPE
||
TREE_CODE
(
type
)
==
UNION_TYPE
)
&&
TYPE_NAME
(
type
)
==
decl
&&
!
(
use_gdb_dbx_extensions
&&
have_used_extensions
)
&&
!
TREE_ASM_WRITTEN
(
TYPE_NAME
(
type
)))
{
tree
name
=
TYPE_NAME
(
type
);
if
(
TREE_CODE
(
name
)
==
TYPE_DECL
)
name
=
DECL_NAME
(
name
);
current_sym_code
=
DBX_TYPE_DECL_STABS_CODE
;
current_sym_value
=
0
;
current_sym_addr
=
0
;
current_sym_nchars
=
2
+
IDENTIFIER_LENGTH
(
name
);
fprintf
(
asmfile
,
"%s
\"
%s:T"
,
ASM_STABS_OP
,
IDENTIFIER_POINTER
(
name
));
dbxout_type
(
type
,
1
,
0
);
dbxout_finish_symbol
(
0
);
}
/* Output typedef name. */
/* Output typedef name. */
fprintf
(
asmfile
,
"%s
\"
%s:"
,
ASM_STABS_OP
,
fprintf
(
asmfile
,
"%s
\"
%s:"
,
ASM_STABS_OP
,
IDENTIFIER_POINTER
(
DECL_NAME
(
decl
)));
IDENTIFIER_POINTER
(
DECL_NAME
(
decl
)));
...
@@ -1395,8 +1422,10 @@ dbxout_symbol (decl, local)
...
@@ -1395,8 +1422,10 @@ dbxout_symbol (decl, local)
putc
(
'T'
,
asmfile
);
putc
(
'T'
,
asmfile
);
TREE_ASM_WRITTEN
(
TYPE_NAME
(
type
))
=
1
;
TREE_ASM_WRITTEN
(
TYPE_NAME
(
type
))
=
1
;
}
}
#if 0 /* Now we generate the tag for this case up above. */
else
else
tag_needed = 1;
tag_needed = 1;
#endif
}
}
/* #endif */
/* #endif */
...
...
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