aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 14cfa57..0db4090 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -14480,8 +14480,8 @@ target_char_cst_p (tree t, char *p)
}
/* Return true if the builtin DECL is implemented in a standard library.
- Otherwise returns false which doesn't guarantee it is not (thus the list of
- handled builtins below may be incomplete). */
+ Otherwise return false which doesn't guarantee it is not (thus the list
+ of handled builtins below may be incomplete). */
bool
builtin_with_linkage_p (tree decl)
@@ -14560,6 +14560,14 @@ builtin_with_linkage_p (tree decl)
CASE_FLT_FN (BUILT_IN_TRUNC):
CASE_FLT_FN_FLOATN_NX (BUILT_IN_TRUNC):
return true;
+
+ case BUILT_IN_STPCPY:
+ case BUILT_IN_STPNCPY:
+ /* stpcpy is both referenced in libiberty's pex-win32.c and provided
+ by libiberty's stpcpy.c for MinGW targets so we need to return true
+ in order to be able to build libiberty in LTO mode for them. */
+ return true;
+
default:
break;
}