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 |