re PR fortran/50201 (gfortran with -static causes seg fault at runtime for writing...
authorJuoko Orava <jouko.orava@iki.fi>
Sat, 5 Dec 2015 18:12:26 +0000 (20:12 +0200)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 5 Dec 2015 18:12:26 +0000 (18:12 +0000)
2015-12-05  Juoko Orava <jouko.orava@iki.fi>

PR fortran/50201
* io/write_float.def: Avoid marking quadmath_snprintf as an untyped
weak reference, which fixing linking with -static.

From-SVN: r231320

libgfortran/ChangeLog
libgfortran/io/write_float.def

index 4843fd5046422a189b21af71e2bbed8964ce44b8..b8c698e28bb09c70b305d02cce752e263c4c1f37 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-05  Juoko Orava <jouko.orava@iki.fi>
+
+       PR fortran/50201
+       * io/write_float.def: Avoid marking quadmath_snprintf as an untyped
+       weak reference, which fixing linking with -static.
+
 2015-11-26  Tobias Burnus  <burnus@net-b.de>
            Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
 
index 183fe0b9f2ea683511bb29f9396be72141fe9905..bb007ac988db57426ec6c8daeb730bcde85cf04f 100644 (file)
@@ -938,7 +938,7 @@ snprintf (buffer, size, "%+-#.*Le", (prec), (val))
 
 #if defined(GFC_REAL_16_IS_FLOAT128)
 #define DTOA2Q(prec,val)                                                       \
-__qmath_(quadmath_snprintf) (buffer, size, "%+-#.*Qe", (prec), (val))
+quadmath_snprintf (buffer, size, "%+-#.*Qe", (prec), (val))
 #endif
 
 #define FDTOA(suff,prec,val) TOKENPASTE(FDTOA2,suff)(prec,val)
@@ -953,7 +953,7 @@ snprintf (buffer, size, "%+-#.*Lf", (prec), (val))
 
 #if defined(GFC_REAL_16_IS_FLOAT128)
 #define FDTOA2Q(prec,val)                             \
-__qmath_(quadmath_snprintf) (buffer, size, "%+-#.*Qf", \
+quadmath_snprintf (buffer, size, "%+-#.*Qf", \
                             (prec), (val))
 #endif