-/* Copyright (C) 2010
+/* Copyright (C) 2010, 2011
Free Software Foundation, Inc.
This file is part of the GNU Fortran runtime library (libgfortran).
export_proto(transfer_complex128_write);
-/* Make sure that libquadmath is pulled in. The functions quadmath_strtopQ
- and quadmath_dtoaq are weakly referrenced in convert_real and write_float;
- the pointer assignment with USED attribute make sure that there is a
- non-weakref dependence if the quadmath functions are used. That avoids
- segfault when libquad is statically linked. */
+/* Make sure that libquadmath is pulled in. The functions strtoflt128
+ and quadmath_snprintf are weakly referrenced in convert_real and
+ write_float; the pointer assignment with USED attribute make sure
+ that there is a non-weakref dependence if the quadmath functions
+ are used. That avoids segfault when libquadmath is statically linked. */
+static void __attribute__((used)) *tmp1 = strtoflt128;
+static void __attribute__((used)) *tmp2 = quadmath_snprintf;
void
transfer_real128 (st_parameter_dt *dtp, void *p, int kind)
{
- static void __attribute__((used)) *tmp1 = quadmath_strtopQ;
- static void __attribute__((used)) *tmp2 = quadmath_dtoaq;
-
transfer_real (dtp, p, kind);
}
void
transfer_real128_write (st_parameter_dt *dtp, void *p, int kind)
{
- static void __attribute__((used)) *tmp1 = quadmath_strtopQ;
- static void __attribute__((used)) *tmp2 = quadmath_dtoaq;
-
transfer_real (dtp, p, kind);
}
void
transfer_complex128 (st_parameter_dt *dtp, void *p, int kind)
{
- static void __attribute__((used)) *tmp1 = quadmath_strtopQ;
- static void __attribute__((used)) *tmp2 = quadmath_dtoaq;
-
transfer_complex (dtp, p, kind);
}
void
transfer_complex128_write (st_parameter_dt *dtp, void *p, int kind)
{
-/* static void __attribute__((used)) *tmp1 = quadmath_strtopQ;
- static void __attribute__((used)) *tmp2 = quadmath_dtoaq;*/
-
transfer_complex_write (dtp, p, kind);
}
#endif