Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1251)

Unified Diff: gcc/cp/semantics.c

Issue 5752064: User directed Function Multiversioning via Function Overloading Base URL: svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Patch Set: User directed Function Multiversioning via Function Overloading Created 12 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/cp/mangle.c ('k') | gcc/doc/tm.texi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/cp/semantics.c
===================================================================
--- gcc/cp/semantics.c (revision 190493)
+++ gcc/cp/semantics.c (working copy)
@@ -3775,8 +3775,11 @@ expand_or_defer_fn_1 (tree fn)
/* If the user wants us to keep all inline functions, then mark
this function as needed so that finish_file will make sure to
output it later. Similarly, all dllexport'd functions must
- be emitted; there may be callers in other DLLs. */
- if ((flag_keep_inline_functions
+ be emitted; there may be callers in other DLLs.
+ Also, mark this function as needed if it is marked inline but
+ is a multi-versioned function. */
+ if (((flag_keep_inline_functions
+ || DECL_FUNCTION_VERSIONED (fn))
&& DECL_DECLARED_INLINE_P (fn)
&& !DECL_REALLY_EXTERN (fn))
|| (flag_keep_inline_dllexport
« no previous file with comments | « gcc/cp/mangle.c ('k') | gcc/doc/tm.texi » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b