openbsd-ports/lang/gcc/3.3/patches/patch-gcc_builtins_c
martynas 0ffeb6ec02 adapt the C++ fix for C99 math functions, and bump c++ pkgname:
don't undefine C99 math macros, if !_GLIBCPP_USE_C99, so that we
can use these functions in C++.
espie@ agrees
2008-07-25 20:50:26 +00:00

28 lines
759 B
Plaintext

$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: