patch-gcc_builtins_c 748 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-gcc_builtins_c,v 1.1 2012/03/31 20:02:03 pascal Exp $
  2. --- gcc/builtins.c.orig Sun Mar 11 19:11:50 2012
  3. +++ gcc/builtins.c Sun Mar 11 19:12:42 2012
  4. @@ -6112,9 +6112,11 @@ expand_builtin (tree exp, rtx target, rtx subtarget, e
  5. break;
  6. case BUILT_IN_STRCPY:
  7. +#ifndef NO_UNSAFE_BUILTINS
  8. target = expand_builtin_strcpy (exp, target);
  9. if (target)
  10. return target;
  11. +#endif
  12. break;
  13. case BUILT_IN_STRNCPY:
  14. @@ -6124,9 +6126,11 @@ expand_builtin (tree exp, rtx target, rtx subtarget, e
  15. break;
  16. case BUILT_IN_STPCPY:
  17. +#ifndef NO_UNSAFE_BUILTINS
  18. target = expand_builtin_stpcpy (exp, target, mode);
  19. if (target)
  20. return target;
  21. +#endif
  22. break;
  23. case BUILT_IN_MEMCPY: