This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/48111] libquadmath: strtoflt128 bug on MinGW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48111

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-15 09:20:20 UTC ---
That testcase has a small bug (noticed when seeing %Qa != %Qa in the output,
affects only non-glibc targets):

--- test.c.jj    2011-03-15 10:14:33.000000000 +0100
+++ test.c    2011-03-15 10:15:00.000000000 +0100
@@ -193,7 +193,7 @@ main (int argc, char ** argv)
     quadmath_snprintf (tb1, sizeof tb1, "%Qa",
                strtoflt128 (ltests[n].str, NULL));
     quadmath_snprintf (tb2, sizeof tb2, "%Qa", ltests[n].l);
-    printf ("ltests[%d]: %Qa != %Qa\n", n, tb1, tb2);
+    printf ("ltests[%d]: %s != %s\n", n, tb1, tb2);
 #endif
     status = 1;
       }

Anyway, it is hard to guess what's wrong and I don't have access to any mingw
targets.  So, this needs to be debugged by someone with mingw access, ideally
side by side with a Linux debugging session to see where the differences start
appearing.  Kai, could you please look at it?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]