This is the mail archive of the gcc-patches@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]

Re: [RFC] Quad-float support in Fortran


Il 07/11/2010 19.38, Tobias Burnus ha scritto:
Hmm, that does not tell much - seemingly, libqfortran/libquad is
compiled without debugging symbols.

Actually, if you compile your program statically, it indeed might be a
problem with weak ref. Can you compile your program using:

gfortran -Wl,--whole-archive -lquadmath -Wl,--no-whole-archive test.f90

This works just fine:


$ gfortran-4.6 -Wl,--whole-archive -lquadmath -Wl,--no-whole-archive test_qp.f90 -o test_qp-new

$ ./test_qp-new
0.12399999999999999999999999999999999
   3.1415926535897932384626433832795028
   3.1415926535897932384626433832795032
  8.67181013012378102479704402604335225E-0035
  4.33590506506189051239852201302167613E-0035
   1.8622957433108482198883613251826206
  0.15729920705028513065877936491739074
  1.92592994438723585305597794258492732E-0034
          33
         113


or completely static:


gfortran -static \
-Wl,--whole-archive \
-lpthread -lquadmath \
-Wl,--no-whole-archive test.f90

Also this:


$ gfortran-4.6 -static -Wl,--whole-archive -lpthread -lquadmath -Wl,--no-whole-archive test_qp.f90 -o test_qp-new

$ ./test_qp-new
0.12399999999999999999999999999999999
   3.1415926535897932384626433832795028
   3.1415926535897932384626433832795032
  8.67181013012378102479704402604335225E-0035
  4.33590506506189051239852201302167613E-0035
   1.8622957433108482198883613251826206
  0.15729920705028513065877936491739074
  1.92592994438723585305597794258492732E-0034
          33
         113

Ciao,
Angelo.


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