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
c4ae3f91
Commit
c4ae3f91
authored
Dec 11, 1997
by
Jason Merrill
Committed by
Jason Merrill
Dec 11, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (instantiate_decl): Defer all templates but inline functions.
From-SVN: r17039
parent
f40421ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+9
-8
No files found.
gcc/cp/ChangeLog
View file @
c4ae3f91
Wed Dec 10 11:04:45 1997 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_decl): Defer all templates but inline functions.
Mon Dec 8 23:17:13 1997 Jason Merrill <jason@yorick.cygnus.com>
* init.c (expand_vec_init): Don't fold a list of parameters.
...
...
gcc/cp/pt.c
View file @
c4ae3f91
...
...
@@ -4553,15 +4553,16 @@ instantiate_decl (d)
import_export_decl
(
d
);
}
/* Reject all external templates except inline functions. */
if
(
DECL_INTERFACE_KNOWN
(
d
)
&&
!
DECL_NOT_REALLY_EXTERN
(
d
)
&&
!
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
&&
DECL_INLINE
(
d
)))
goto
out
;
/* Defer all templates except inline functions used in another function. */
if
(
!
pattern_defined
||
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
&&
!
DECL_INLINE
(
d
)
&&
(
!
DECL_INTERFACE_KNOWN
(
d
)
||
!
DECL_NOT_REALLY_EXTERN
(
d
)))
/* Kludge: if we compile a constructor in the middle of processing a
toplevel declaration, we blow away the declspecs in
temp_decl_obstack when we call permanent_allocation in
finish_function. So don't compile it yet. */
||
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
&&
!
nested
&&
!
at_eof
))
||
(
!
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
&&
DECL_INLINE
(
d
)
&&
nested
)
&&
!
at_eof
))
{
add_pending_template
(
d
);
goto
out
;
...
...
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