mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
23 lines
870 B
Plaintext
23 lines
870 B
Plaintext
$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);
|