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

--- Comment #4 from dave.anglin at bell dot net ---
On 2015-12-12, at 3:50 PM, dominiq at lps dot ens.fr wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743
> 
> --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>> 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
> 
> AFAIU
> 
> #ifndef HAVE_FLOORF
> #define HAVE_FLOORF 1
> float floorf (float x);
> 
> float
> floorf (float x)
> {
>  return (float) floor (x);
> }
> #endif
> 
> it means that HAVE_FLOORF is not defined. Do you see that in your
> libgfortran/config.log?


Yes.  The puzzle is why "return (float) floor (x);" calls floorf.

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

Reply via email to