public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46625] New: libquadmath: Mangle internal symbols; rename __float128 <-> string functions
@ 2010-11-23 18:41 burnus at gcc dot gnu.org
  2010-12-01 12:47 ` [Bug fortran/46625] " burnus at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-11-23 18:41 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: libquadmath: Mangle internal symbols; rename
                    __float128 <-> string functions
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


For libquadmath.a it makes sense to mangle non-exported symbols, e.g. by
prefixing them with __quadmath_

quadmath_strtopQ and quadmath_dtoaq look ugly, Jakub suggests:
   quadmath_strtoq and quadmath_qtostr


C example (to have one somewhere):

/* Compile with  gcc test.c -lquadmath -lm  shows:
:+1.41421356237309504880e+00:
:+1.2345678000e-05:
*/

#include <quadmath.h>
#include <stdio.h>

int main()
{
  __float128 r;
  char str[200];

  r = 2.0q;
  r = sqrtq(r);
  quadmath_dtoaq (str, 200, 20, r);
  printf(":%s:\n", str);

  quadmath_strtopQ ("1.2345678", NULL, &r);
  r = r/100000.0q;
  quadmath_dtoaq (str, 200, 10, r);
  printf(":%s:\n", str);

  return 0;
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-16 16:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 18:41 [Bug fortran/46625] New: libquadmath: Mangle internal symbols; rename __float128 <-> string functions burnus at gcc dot gnu.org
2010-12-01 12:47 ` [Bug fortran/46625] " burnus at gcc dot gnu.org
2010-12-03  8:44 ` burnus at gcc dot gnu.org
2010-12-08 22:43 ` burnus at gcc dot gnu.org
2010-12-11 17:48 ` burnus at gcc dot gnu.org
2010-12-13 19:45 ` burnus at gcc dot gnu.org
2010-12-13 19:59 ` burnus at gcc dot gnu.org
2011-01-16 17:16 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).