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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> I think that's probably spurious:
> 
> void
> set ()
> {
>  a=nan("");
> }
> ...
>   float a = move (1);
>   if (!__builtin_constant_p (a))
>     __builtin_abort ();
> 
> 
> given set doesn't bind locally with -fpic we don't inline it and thus
> the result cannot be constant.
> 
> -> testsuite issue
> 
> A fix is probably to make set static.  That change is pre-approved.

It makes no difference.  It still aborts with -fpic.

Reply via email to