This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C inlines that are also builtins.
- From: Sergey Organov <sorganov at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Nov 2015 14:54:08 +0300
- Subject: Re: C inlines that are also builtins.
- Authentication-results: sourceware.org; auth=none
- References: <n1q58n$63o$1 at ger dot gmane dot org> <5640D267 dot 5020803 at gmail dot com> <n1qso7$n4l$2 at ger dot gmane dot org> <56416B00 dot 4040205 at gmail dot com>
Martin Sebor <msebor@gmail.com> writes:
[...]
>> The point is that for builtin functions it apparently does it wrong.
>
> I see. Yes, that does look like a bug. symtab_node::needed_p()
> returns false for an ordinary inline function but true for one
> that has a builtin. I didn't spend enough time debugging this
> to see what sets it and why, and I couldn't find any tests for
> this to confirm that it's deliberate.
[...]
> In any event, you should probably open a bug so that someone who
> knows more about the implementation than I do can say for sure.
Tanks, here is the bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272
-- Sergey