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
821adc5e
Commit
821adc5e
authored
Jan 17, 2002
by
Jason Merrill
Committed by
Jason Merrill
Jan 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dbxout.c (dbxout_type): Support const and volatile.
From-SVN: r48954
parent
dbd680e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
15 deletions
+36
-15
gcc/ChangeLog
+2
-0
gcc/dbxout.c
+34
-15
No files found.
gcc/ChangeLog
View file @
821adc5e
2002-01-17 Jason Merrill <jason@redhat.com>
* dbxout.c (dbxout_type): Support const and volatile.
* except.c (add_partial_entry): Remove backwards compatibility code.
(end_protect_partials): Likewise.
...
...
gcc/dbxout.c
View file @
821adc5e
...
...
@@ -1038,6 +1038,7 @@ dbxout_type (type, full)
int
full
;
{
tree
tem
;
tree
main_variant
;
static
int
anonymous_type_number
=
0
;
if
(
TREE_CODE
(
type
)
==
VECTOR_TYPE
)
...
...
@@ -1050,24 +1051,24 @@ dbxout_type (type, full)
type
=
integer_type_node
;
else
{
/* Try to find the "main variant" with the same name but not const
or volatile. (Since stabs does not distinguish const and volatile,
there is no need to make them separate types. But types with
different names are usefully distinguished.) */
for
(
tem
=
TYPE_MAIN_VARIANT
(
type
);
tem
;
tem
=
TYPE_NEXT_VARIANT
(
tem
))
if
(
!
TYPE_READONLY
(
tem
)
&&
!
TYPE_VOLATILE
(
tem
)
&&
TYPE_NAME
(
tem
)
==
TYPE_NAME
(
type
))
{
type
=
tem
;
break
;
}
if
(
TYPE_NAME
(
type
)
&&
TREE_CODE
(
TYPE_NAME
(
type
))
==
TYPE_DECL
&&
TYPE_DECL_SUPPRESS_DEBUG
(
TYPE_NAME
(
type
)))
full
=
0
;
}
/* Try to find the "main variant" with the same name. */
if
(
TYPE_NAME
(
type
)
&&
TREE_CODE
(
TYPE_NAME
(
type
))
==
TYPE_DECL
&&
DECL_ORIGINAL_TYPE
(
TYPE_NAME
(
type
)))
main_variant
=
TREE_TYPE
(
TYPE_NAME
(
type
));
else
main_variant
=
TYPE_MAIN_VARIANT
(
type
);
/* If we are not using extensions, stabs does not distinguish const and
volatile, so there is no need to make them separate types. */
if
(
!
use_gnu_debug_info_extensions
)
type
=
main_variant
;
if
(
TYPE_SYMTAB_ADDRESS
(
type
)
==
0
)
{
/* Type has no dbx number assigned. Assign next available number. */
...
...
@@ -1157,12 +1158,30 @@ dbxout_type (type, full)
typevec
[
TYPE_SYMTAB_ADDRESS
(
type
)].
status
=
TYPE_DEFINED
;
if
(
TYPE_NAME
(
type
)
&&
TREE_CODE
(
TYPE_NAME
(
type
))
==
TYPE_DECL
&&
DECL_ORIGINAL_TYPE
(
TYPE_NAME
(
type
)))
{
/* If this type is a variant of some other, hand off. Types with
different names are usefully distinguished. We only distinguish
cv-qualified types if we're using extensions. */
if
(
TYPE_READONLY
(
type
)
>
TYPE_READONLY
(
main_variant
))
{
putc
(
'k'
,
asmfile
);
CHARS
(
1
);
dbxout_type
(
build_type_variant
(
type
,
0
,
TYPE_VOLATILE
(
type
)),
0
);
return
;
}
else
if
(
TYPE_VOLATILE
(
type
)
>
TYPE_VOLATILE
(
main_variant
))
{
putc
(
'B'
,
asmfile
);
CHARS
(
1
);
dbxout_type
(
build_type_variant
(
type
,
TYPE_READONLY
(
type
),
0
),
0
);
return
;
}
else
if
(
main_variant
!=
TYPE_MAIN_VARIANT
(
type
))
{
/* 'type' is a typedef; output the type it refers to. */
dbxout_type
(
DECL_ORIGINAL_TYPE
(
TYPE_NAME
(
type
)),
0
);
return
;
}
/* else continue. */
switch
(
TREE_CODE
(
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