[RFC] Quad-float support in Fortran

Tobias Burnus burnus@net-b.de
Sun Nov 7 10:49:00 GMT 2010


Hi Angelo,

Angelo Graziosi wrote:
> Now, I can build gfortran (rev. 166408+your patches), whose result is:
>
> $ gfortran-4.6 -v
> Target: i686-pc-cygwin
> gcc version 4.6.0 20101106 (experimental) (GCC)
>
> With it I can compile this simple test case:
> But:
> $ ./test_qp
> Segmentation fault (core dumped)

It works here (x86-64-linux) without any problems. Can you compile with 
debugging symbols (-g), run it in a debugger and show the backtrace? Example
   gdb --quiet ./test_qp
   (gdb) run
   ...
   (gdb) bt

Does the program work, if you compile it statically (-static)?


> If I use my previous build (a week ago) of gfortran (done with round4
> patches, in the old way [*]), it works just fine:

I wonder whether it has to do with the weakref. Can you search in your 
build directory for libgfortran's config.h. In my case it is at:

./x86_64-unknown-linux-gnu/32/libgfortran/config.h
./x86_64-unknown-linux-gnu/libgfortran/config.h

I am in particular interested in the value for:

/* Define to 1 if the target supports #pragma weak */
#define SUPPORTS_WEAK 1


Tobias



More information about the Fortran mailing list