$OpenBSD: patch-gcc_builtins_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
--- gcc/builtins.c.orig	Tue Aug  3 23:06:45 2004
+++ gcc/builtins.c	Fri Jul 25 12:34:56 2008
@@ -4003,9 +4003,11 @@ expand_builtin (exp, target, subtarget, mode, ignore)
       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, mode, ignore)
       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:
