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
e5361bbe
Commit
e5361bbe
authored
Mar 25, 2000
by
Mark Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in ChangeLog
From-SVN: r32739
parent
b5fc444b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
14 deletions
+19
-14
gcc/cp/ChangeLog
+2
-1
gcc/cp/cp-tree.h
+5
-2
gcc/cp/decl.c
+2
-2
gcc/cp/dump.c
+1
-0
gcc/cp/error.c
+1
-1
gcc/cp/friend.c
+1
-1
gcc/cp/pt.c
+7
-7
No files found.
gcc/cp/ChangeLog
View file @
e5361bbe
...
...
@@ -9,7 +9,8 @@
2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* call.c (check_dtor_name,build_new_method_call): Likewise.
* call.c (check_dtor_name,build_new_method_call): Use DECL_P and
TYPE_P macros.
* decl.c (push_class_binding,poplevel,pushtag,lookup_namespace_name,
make_typename_type,check_initializer,cp_finish_decl,xref_tag): Likewise.
* decl2.c (grokfield,build_expr_from_tree,build_expr_from_tree,
...
...
gcc/cp/cp-tree.h
View file @
e5361bbe
...
...
@@ -2837,9 +2837,12 @@ 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)
#define CLASSTYPE_TEMPLATE_SPECIALIZATION(NODE) \
/* Nonzero if NODE is a partial specialization. This flag is not set
for a full specialization. */
#define CLASSTYPE_PARTIAL_SPECIALIZATION(NODE) \
(CLASSTYPE_USE_TEMPLATE (NODE) == 2)
#define SET_CLASSTYPE_
TEMPLATE
_SPECIALIZATION(NODE) \
#define SET_CLASSTYPE_
PARTIAL
_SPECIALIZATION(NODE) \
(CLASSTYPE_USE_TEMPLATE (NODE) = 2)
#define DECL_IMPLICIT_INSTANTIATION(NODE) (DECL_USE_TEMPLATE (NODE) == 1)
...
...
gcc/cp/decl.c
View file @
e5361bbe
...
...
@@ -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
)
&&
!
CLASSTYPE_TEMPLATE_SPECIALIZATION
(
t
))
if
(
CLASSTYPE_TEMPLATE_INFO
(
t
)
&&
uses_template_parms
(
CLASSTYPE_TI_ARGS
(
t
)
))
template_count
+=
1
;
t
=
TYPE_MAIN_DECL
(
t
);
if
(
DECL_LANG_SPECIFIC
(
t
))
...
...
gcc/cp/dump.c
View file @
e5361bbe
...
...
@@ -609,6 +609,7 @@ 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
;
...
...
gcc/cp/error.c
View file @
e5361bbe
...
...
@@ -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_
TEMPLATE
_SPECIALIZATION
(
t
)
&&
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
t
)
||
TREE_CODE
(
CLASSTYPE_TI_TEMPLATE
(
t
))
!=
TEMPLATE_DECL
||
DECL_TEMPLATE_SPECIALIZATION
(
CLASSTYPE_TI_TEMPLATE
(
t
))
||
PRIMARY_TEMPLATE_P
(
CLASSTYPE_TI_TEMPLATE
(
t
)));
...
...
gcc/cp/friend.c
View file @
e5361bbe
...
...
@@ -205,7 +205,7 @@ make_friend_class (type, friend_type)
}
if
(
CLASS_TYPE_P
(
friend_type
)
&&
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
friend_type
)
&&
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
friend_type
)
&&
uses_template_parms
(
friend_type
))
{
/* [temp.friend]
...
...
gcc/cp/pt.c
View file @
e5361bbe
...
...
@@ -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_
TEMPLATE
_SPECIALIZATION
(
decl
))
&&
!
CLASSTYPE_
PARTIAL
_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_
TEMPLATE
_SPECIALIZATION
(
type
))
&&
CLASSTYPE_
PARTIAL
_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_
TEMPLATE
_SPECIALIZATION
(
type
);
SET_CLASSTYPE_
PARTIAL
_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_
TEMPLATE
_SPECIALIZATION
(
TREE_TYPE
(
decl
)));
&&
CLASSTYPE_
PARTIAL
_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_
TEMPLATE
_SPECIALIZATION
(
t
))
&&
!
CLASSTYPE_
PARTIAL
_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_
TEMPLATE
_SPECIALIZATION
(
TREE_VALUE
(
found
))
if
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
TREE_VALUE
(
found
))
||
!
uses_template_parms
(
TREE_VALUE
(
found
)))
continue
;
...
...
@@ -9194,7 +9194,7 @@ do_type_instantiation (t, storage)
}
}
if
(
CLASSTYPE_
TEMPLATE
_SPECIALIZATION
(
t
))
if
(
CLASSTYPE_
PARTIAL
_SPECIALIZATION
(
t
))
{
/* [temp.spec]
...
...
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