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
95f2ba07
Commit
95f2ba07
authored
Mar 24, 1992
by
Ken Raeburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r581
parent
6d750308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
gcc/dbxout.c
+28
-3
No files found.
gcc/dbxout.c
View file @
95f2ba07
...
...
@@ -83,7 +83,7 @@ extern int errno;
#endif
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoff.h"
#include "xcoff
out
.h"
#endif
#ifndef ASM_STABS_OP
...
...
@@ -135,7 +135,7 @@ char *getpwd ();
#define FORCE_TEXT
#endif
#if defined (USG) || defined (
MIPS
)
#if defined (USG) || defined (
NO_STAB_H
)
#include "gstab.h"
/* If doing DBX on sysV, use our own stab.h. */
#else
#include <stab.h>
/* On BSD, use the system's stab.h. */
...
...
@@ -681,6 +681,7 @@ dbxout_type_methods (type)
/* C++: put out the method names and their parameter lists */
tree
ctor_name
;
tree
methods
=
TYPE_METHODS
(
type
);
tree
type_encoding
;
register
tree
fndecl
;
register
tree
last
;
register
int
type_identifier_length
;
...
...
@@ -689,7 +690,28 @@ dbxout_type_methods (type)
return
;
ctor_name
=
DECL_NAME
(
TYPE_NAME
(
type
));
/* C++: Template classes break some assumptions made by this code about
the class names, constructor names, and encodings for assembler
label names. For now, disable output of dbx info for them. */
{
char
*
ptr
=
IDENTIFIER_POINTER
(
ctor_name
);
/* Avoid strchr or index since those names aren't universal. */
while
(
*
ptr
&&
*
ptr
!=
'<'
)
ptr
++
;
if
(
*
ptr
!=
0
)
{
static
int
warned
;
if
(
!
warned
)
{
warned
=
1
;
warning
(
"dbx info for template class methods not yet supported"
);
}
return
;
}
}
type_identifier_length
=
IDENTIFIER_LENGTH
(
ctor_name
);
if
(
TREE_CODE
(
methods
)
==
FUNCTION_DECL
)
fndecl
=
methods
;
else
if
(
TREE_VEC_ELT
(
methods
,
0
)
!=
NULL_TREE
)
...
...
@@ -987,8 +1009,11 @@ dbxout_type (type, full)
/* Output a structure type. */
if
((
TYPE_NAME
(
type
)
!=
0
#if 0 /* Tiemann says this creates output tha "confuses GDB".
Too bad the info is so vague. Hope this doesn't lose. */
&& ! (TREE_CODE (TYPE_NAME (type)) == TYPE_DECL
&& DECL_IGNORED_P (TYPE_NAME (type)))
#endif
&&
!
full
)
||
TYPE_SIZE
(
type
)
==
0
)
{
...
...
@@ -1001,7 +1026,7 @@ dbxout_type (type, full)
and let the definition come when the name is defined. */
fprintf
(
asmfile
,
(
TREE_CODE
(
type
)
==
RECORD_TYPE
)
?
"xs"
:
"xu"
);
CHARS
(
3
);
#if 0
/* This assertion is legitimately false in C++. */
#if 0
/* This assertion is legitimately false in C++. */
/* We shouldn't be outputting a reference to a type before its
definition unless the type has a tag name.
A typedef name without a tag name should be impossible. */
...
...
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