[Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 24 14:06:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list