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
177f65ea
Commit
177f65ea
authored
Nov 13, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dbxout_type_field): Skip fields with variable
position and/or size instead of crashing on them. From-SVN: r6080
parent
6026c19c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/dbxout.c
+5
-3
No files found.
gcc/dbxout.c
View file @
177f65ea
...
@@ -590,6 +590,11 @@ dbxout_type_fields (type)
...
@@ -590,6 +590,11 @@ dbxout_type_fields (type)
/* Omit here local type decls until we know how to support them. */
/* Omit here local type decls until we know how to support them. */
else
if
(
TREE_CODE
(
tem
)
==
TYPE_DECL
)
else
if
(
TREE_CODE
(
tem
)
==
TYPE_DECL
)
continue
;
continue
;
/* Omit fields whose position or size are variable. */
else
if
(
TREE_CODE
(
tem
)
==
FIELD_DECL
&&
(
TREE_CODE
(
DECL_FIELD_BITPOS
(
tem
))
!=
INTEGER_CST
||
TREE_CODE
(
DECL_SIZE
(
tem
))
!=
INTEGER_CST
))
continue
;
/* Omit here the nameless fields that are used to skip bits. */
/* Omit here the nameless fields that are used to skip bits. */
else
if
(
DECL_NAME
(
tem
)
!=
0
&&
TREE_CODE
(
tem
)
!=
CONST_DECL
)
else
if
(
DECL_NAME
(
tem
)
!=
0
&&
TREE_CODE
(
tem
)
!=
CONST_DECL
)
{
{
...
@@ -656,9 +661,6 @@ dbxout_type_fields (type)
...
@@ -656,9 +661,6 @@ dbxout_type_fields (type)
TREE_INT_CST_LOW
(
DECL_FIELD_BITPOS
(
tem
)),
TREE_INT_CST_LOW
(
DECL_FIELD_BITPOS
(
tem
)),
TREE_INT_CST_LOW
(
DECL_SIZE
(
tem
)));
TREE_INT_CST_LOW
(
DECL_SIZE
(
tem
)));
}
}
else
/* This has yet to be implemented. */
abort
();
CHARS
(
23
);
CHARS
(
23
);
}
}
}
}
...
...
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