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
010ea288
Commit
010ea288
authored
Aug 19, 2014
by
Gerald Pfeifer
Committed by
Gerald Pfeifer
Aug 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (contains_empty_class_p): Remove.
From-SVN: r214130
parent
6ae9194f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
30 deletions
+4
-30
gcc/cp/ChangeLog
+4
-0
gcc/cp/class.c
+0
-30
No files found.
gcc/cp/ChangeLog
View file @
010ea288
2014-08-19 Gerald Pfeifer <gerald@pfeifer.com>
* class.c (contains_empty_class_p): Remove.
2014-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2014-08-18 Paolo Carlini <paolo.carlini@oracle.com>
* parser.c (cp_parser_expression): Add default arguments.
* parser.c (cp_parser_expression): Add default arguments.
...
...
gcc/cp/class.c
View file @
010ea288
...
@@ -208,7 +208,6 @@ static int splay_tree_compare_integer_csts (splay_tree_key k1,
...
@@ -208,7 +208,6 @@ static int splay_tree_compare_integer_csts (splay_tree_key k1,
splay_tree_key
k2
);
splay_tree_key
k2
);
static
void
warn_about_ambiguous_bases
(
tree
);
static
void
warn_about_ambiguous_bases
(
tree
);
static
bool
type_requires_array_cookie
(
tree
);
static
bool
type_requires_array_cookie
(
tree
);
static
bool
contains_empty_class_p
(
tree
);
static
bool
base_derived_from
(
tree
,
tree
);
static
bool
base_derived_from
(
tree
,
tree
);
static
int
empty_base_at_nonzero_offset_p
(
tree
,
tree
,
splay_tree
);
static
int
empty_base_at_nonzero_offset_p
(
tree
,
tree
,
splay_tree
);
static
tree
end_of_base
(
tree
);
static
tree
end_of_base
(
tree
);
...
@@ -7796,35 +7795,6 @@ is_empty_class (tree type)
...
@@ -7796,35 +7795,6 @@ is_empty_class (tree type)
return
CLASSTYPE_EMPTY_P
(
type
);
return
CLASSTYPE_EMPTY_P
(
type
);
}
}
/* Returns true if TYPE contains an empty class. */
static
bool
contains_empty_class_p
(
tree
type
)
{
if
(
is_empty_class
(
type
))
return
true
;
if
(
CLASS_TYPE_P
(
type
))
{
tree
field
;
tree
binfo
;
tree
base_binfo
;
int
i
;
for
(
binfo
=
TYPE_BINFO
(
type
),
i
=
0
;
BINFO_BASE_ITERATE
(
binfo
,
i
,
base_binfo
);
++
i
)
if
(
contains_empty_class_p
(
BINFO_TYPE
(
base_binfo
)))
return
true
;
for
(
field
=
TYPE_FIELDS
(
type
);
field
;
field
=
TREE_CHAIN
(
field
))
if
(
TREE_CODE
(
field
)
==
FIELD_DECL
&&
!
DECL_ARTIFICIAL
(
field
)
&&
is_empty_class
(
TREE_TYPE
(
field
)))
return
true
;
}
else
if
(
TREE_CODE
(
type
)
==
ARRAY_TYPE
)
return
contains_empty_class_p
(
TREE_TYPE
(
type
));
return
false
;
}
/* Returns true if TYPE contains no actual data, just various
/* Returns true if TYPE contains no actual data, just various
possible combinations of empty classes and possibly a vptr. */
possible combinations of empty classes and possibly a vptr. */
...
...
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