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 fortran/68743] FAIL: gfortran.dg/aint_anint_1.f90 -O0 execution test


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743

--- Comment #2 from dave.anglin at bell dot net ---
On 2015-12-07, at 5:58 PM, dominiq at lps dot ens.fr wrote:

> Could you
> please investigate what is wrong with your libs?

There is a problem with the call to floor in the floorf function at
c99_functions.c:293.
Somehow, it calls floorf instead and this causes a stack overflow:

Pid 12028 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz. 

Program received signal SIGSEGV, Segmentation fault.
floorf (x=42.7000008, 
    x@entry=<error reading variable: DWARF-2 expression error: Loop detected
(257).>) at ../../../gcc/libgfortran/intrinsics/c99_functions.c:293

Relocation section '.rela.text.floorf' at offset 0xde70 contains 1 entries:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend
00000000000c  00d00000004a R_PARISC_PCREL22F 0000000000000000 floorf + 0

It's like floor is aliased to floorf.

--
John David Anglin       dave.anglin@bell.net

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