openbsd-ports/lang/gcc/3.3/patches/patch-gcc_builtins_c
2005-01-03 15:21:26 +00:00

28 lines
734 B
Plaintext

$OpenBSD: patch-gcc_builtins_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
--- gcc/builtins.c.orig Tue Aug 3 22:06:45 2004
+++ gcc/builtins.c Mon Jan 3 10:17:41 2005
@@ -4003,9 +4003,11 @@ expand_builtin (exp, target, subtarget,
break;
case BUILT_IN_STRCPY:
+#ifndef NO_UNSAFE_BUILTINS
target = expand_builtin_strcpy (exp, target, mode);
if (target)
return target;
+#endif
break;
case BUILT_IN_STRNCPY:
@@ -4015,9 +4017,11 @@ expand_builtin (exp, target, subtarget,
break;
case BUILT_IN_STRCAT:
+#ifndef NO_UNSAFE_BUILTINS
target = expand_builtin_strcat (arglist, target, mode);
if (target)
return target;
+#endif
break;
case BUILT_IN_STRNCAT: