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
370af2d5
Commit
370af2d5
authored
25 years ago
by
Mark Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove accidental commit
From-SVN: r32740
parent
e5361bbe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
17 deletions
+13
-17
gcc/cp/cp-tree.h
+2
-5
gcc/cp/decl.c
+2
-2
gcc/cp/dump.c
+0
-1
gcc/cp/error.c
+1
-1
gcc/cp/friend.c
+1
-1
gcc/cp/pt.c
+7
-7
No files found.
gcc/cp/cp-tree.h
View file @
370af2d5
...
...
@@ -2837,12 +2837,9 @@ extern int flag_new_for_scope;
#define DECL_TEMPLATE_SPECIALIZATION(NODE) (DECL_USE_TEMPLATE (NODE) == 2)
#define SET_DECL_TEMPLATE_SPECIALIZATION(NODE) (DECL_USE_TEMPLATE (NODE) = 2)
/* Nonzero if NODE is a partial specialization. This flag is not set
for a full specialization. */
#define CLASSTYPE_PARTIAL_SPECIALIZATION(NODE) \
#define CLASSTYPE_TEMPLATE_SPECIALIZATION(NODE) \
(CLASSTYPE_USE_TEMPLATE (NODE) == 2)
#define SET_CLASSTYPE_
PARTIAL
_SPECIALIZATION(NODE) \
#define SET_CLASSTYPE_
TEMPLATE
_SPECIALIZATION(NODE) \
(CLASSTYPE_USE_TEMPLATE (NODE) = 2)
#define DECL_IMPLICIT_INSTANTIATION(NODE) (DECL_USE_TEMPLATE (NODE) == 1)
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/decl.c
View file @
370af2d5
...
...
@@ -10647,8 +10647,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
t
=
ctype
;
while
(
t
!=
NULL_TREE
&&
CLASS_TYPE_P
(
t
))
{
if
(
CLASSTYPE_TEMPLATE_INFO
(
t
)
&&
uses_template_parms
(
CLASSTYPE_TI_ARGS
(
t
)
))
if
(
CLASSTYPE_TEMPLATE_INFO
(
t
)
&&
!
CLASSTYPE_TEMPLATE_SPECIALIZATION
(
t
))
template_count
+=
1
;
t
=
TYPE_MAIN_DECL
(
t
);
if
(
DECL_LANG_SPECIFIC
(
t
))
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/dump.c
View file @
370af2d5
...
...
@@ -609,7 +609,6 @@ dequeue_and_dump (di)
break
;
case
TEMPLATE_DECL
:
dump_child
(
"rslt"
,
DECL_TEMPLATE_RESULT
(
t
));
dump_child
(
"inst"
,
DECL_TEMPLATE_INSTANTIATIONS
(
t
));
dump_child
(
"spcs"
,
DECL_TEMPLATE_SPECIALIZATIONS
(
t
));
break
;
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/error.c
View file @
370af2d5
...
...
@@ -519,7 +519,7 @@ dump_aggr_type (t, flags)
typdef
=
!
DECL_ARTIFICIAL
(
name
);
tmplate
=
!
typdef
&&
TREE_CODE
(
t
)
!=
ENUMERAL_TYPE
&&
TYPE_LANG_SPECIFIC
(
t
)
&&
CLASSTYPE_TEMPLATE_INFO
(
t
)
&&
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
t
)
&&
(
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
t
)
||
TREE_CODE
(
CLASSTYPE_TI_TEMPLATE
(
t
))
!=
TEMPLATE_DECL
||
DECL_TEMPLATE_SPECIALIZATION
(
CLASSTYPE_TI_TEMPLATE
(
t
))
||
PRIMARY_TEMPLATE_P
(
CLASSTYPE_TI_TEMPLATE
(
t
)));
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/friend.c
View file @
370af2d5
...
...
@@ -205,7 +205,7 @@ make_friend_class (type, friend_type)
}
if
(
CLASS_TYPE_P
(
friend_type
)
&&
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
friend_type
)
&&
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
friend_type
)
&&
uses_template_parms
(
friend_type
))
{
/* [temp.friend]
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/pt.c
View file @
370af2d5
...
...
@@ -190,7 +190,7 @@ finish_member_template_decl (decl)
/* Assume that the class is the only declspec. */
decl
=
TREE_VALUE
(
decl
);
if
(
IS_AGGR_TYPE
(
decl
)
&&
CLASSTYPE_TEMPLATE_INFO
(
decl
)
&&
!
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
decl
))
&&
!
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
decl
))
{
tree
tmpl
=
CLASSTYPE_TI_TEMPLATE
(
decl
);
check_member_template
(
tmpl
);
...
...
@@ -252,7 +252,7 @@ template_class_depth_real (type, count_specializations)
if
(
CLASSTYPE_TEMPLATE_INFO
(
type
)
&&
PRIMARY_TEMPLATE_P
(
CLASSTYPE_TI_TEMPLATE
(
type
))
&&
((
count_specializations
&&
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
type
))
&&
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
type
))
||
uses_template_parms
(
CLASSTYPE_TI_ARGS
(
type
))))
++
depth
;
}
...
...
@@ -666,7 +666,7 @@ maybe_process_partial_specialization (type)
cp_pedwarn_at
(
" from definition of `%#D'"
,
CLASSTYPE_TI_TEMPLATE
(
type
));
}
SET_CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
type
);
SET_CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
type
);
if
(
processing_template_decl
)
push_template_decl
(
TYPE_MAIN_DECL
(
type
));
}
...
...
@@ -2359,7 +2359,7 @@ push_template_decl_real (decl, is_friend)
/* See if this is a partial specialization. */
is_partial
=
(
DECL_IMPLICIT_TYPEDEF_P
(
decl
)
&&
TREE_CODE
(
TREE_TYPE
(
decl
))
!=
ENUMERAL_TYPE
&&
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
TREE_TYPE
(
decl
)));
&&
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
TREE_TYPE
(
decl
)));
is_friend
|=
(
TREE_CODE
(
decl
)
==
FUNCTION_DECL
&&
DECL_FRIEND_P
(
decl
));
...
...
@@ -3548,7 +3548,7 @@ classtype_mangled_name (t)
if
(
CLASSTYPE_TEMPLATE_INFO
(
t
)
/* Specializations have already had their names set up in
lookup_template_class. */
&&
!
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
t
))
&&
!
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
t
))
{
tree
tmpl
=
most_general_template
(
CLASSTYPE_TI_TEMPLATE
(
t
));
...
...
@@ -3963,7 +3963,7 @@ lookup_template_class (d1, arglist, in_decl, context, entering_scope)
/* We only want partial instantiations, here, not
specializations or full instantiations. */
if
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
TREE_VALUE
(
found
))
if
(
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
TREE_VALUE
(
found
))
||
!
uses_template_parms
(
TREE_VALUE
(
found
)))
continue
;
...
...
@@ -9194,7 +9194,7 @@ do_type_instantiation (t, storage)
}
}
if
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
t
))
if
(
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
t
))
{
/* [temp.spec]
...
...
This diff is collapsed.
Click to expand it.
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