[PATCH, testsuite]: Avoid "error: inlining failed in call to always_inline" with -fpic

Uros Bizjak ubizjak@gmail.com
Mon Apr 15 10:16:00 GMT 2013


On Wed, Apr 10, 2013 at 7:13 PM, Uros Bizjak <ubizjak@gmail.com> wrote:

> Attached testsuite patch fixes:
>
> pr33992.c: In function ‘do_test’:
> pr33992.c:11:1: error: inlining failed in call to always_inline ‘foo’:
> function body can be overwritten at link time
> pr33992.c:28:9: error: called from here
>      foo (r);
>          ^
>
> errors through gcc and g++ testsuite when tested with -fpic.
>
> 2013-04-10  Uros Bizjak  <ubizjak@gmail.com>
>
>     * g++.dg/ipa/devirt-c-7.C: Require nonpic effective target.
>     * gcc.c-torture/execute/pr33992.c (foo): Declare as static void.
>     * gcc.dg/uninit-pred-5_a.c (foo): Ditto.
>     * gcc.dg/uninit-pred-5_b.c (foo): Ditto.
>
> OK for mainline and release branches?

I would like to proceed with this fairly obvious issue, so If there
are no objections, I plan to commit the patch tomorrow.

Thanks,
Uros.



More information about the Gcc-patches mailing list