]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* io/write_float.def (WRITE_FLOAT): Use __builtin_signbit.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 24 Feb 2010 15:35:40 +0000 (15:35 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 24 Feb 2010 15:35:40 +0000 (15:35 +0000)
From-SVN: r157048

libgfortran/ChangeLog
libgfortran/io/write_float.def

index 0d33a7df2ef210f3a89687c03843001daed9d907..b674f5c3466b4708501512c7e32915004e45625d 100644 (file)
@@ -1,3 +1,7 @@
+2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * io/write_float.def (WRITE_FLOAT): Use __builtin_signbit.
+
 2010-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        * io/list_read.c (list_formatted_read_scalar): Remove duplicate code.
index eca0e56a5e91b4e4717d83fae1c3c73d42d3bfd1..b945eb012db14c5e28cf56e8ded1489b1323eee4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    Contributed by Andy Vaught
    Write float code factoring to this file by Jerry DeLisle   
    F2003 I/O support contributed by Jerry DeLisle
@@ -818,7 +818,7 @@ sprintf (buffer, "%+-#" STR(MIN_FIELD_WIDTH) ".*" \
 {\
        GFC_REAL_ ## x tmp;\
        tmp = * (GFC_REAL_ ## x *)source;\
-       sign_bit = signbit (tmp);\
+       sign_bit = __builtin_signbit (tmp);\
        if (!isfinite (tmp))\
          { \
            write_infnan (dtp, f, isnan (tmp), sign_bit);\