pkgsrc/lang/gcc44/patches/patch-ai
wiz 9659a2b4c2 Replace patch-ae with a better patches/patch-gcc_ginclude_stddef.h,
provided by Kai-Uwe Eckhardt for fixing PR 43131 (Linux build).

While here, add RCS Ids to a few patches, and regen one.
2011-05-14 18:00:24 +00:00

22 lines
870 B
Text

$NetBSD: patch-ai,v 1.2 2011/05/14 18:00:24 wiz Exp $
--- gcc/fortran/f95-lang.c.orig 2010-04-21 23:26:11.000000000 +0200
+++ gcc/fortran/f95-lang.c
@@ -871,10 +871,17 @@
gfc_define_builtin ("__builtin_cabsl", func_clongdouble_longdouble,
BUILT_IN_CABSL, "cabsl", true);
+#if defined (__NetBSD__)
+ gfc_define_builtin ("__builtin_cabs", func_cdouble_double,
+ BUILT_IN_CABS, "__c99_cabs", true);
+ gfc_define_builtin ("__builtin_cabsf", func_cfloat_float,
+ BUILT_IN_CABSF, "__c99_cabsf", true);
+#else
gfc_define_builtin ("__builtin_cabs", func_cdouble_double,
BUILT_IN_CABS, "cabs", true);
gfc_define_builtin ("__builtin_cabsf", func_cfloat_float,
BUILT_IN_CABSF, "cabsf", true);
+#endif
gfc_define_builtin ("__builtin_copysignl", mfunc_longdouble[1],
BUILT_IN_COPYSIGNL, "copysignl", true);