This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite]: Avoid "error: inlining failed in call to always_inline" with -fpic
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 15 Apr 2013 11:18:27 +0200
- Subject: Re: [PATCH, testsuite]: Avoid "error: inlining failed in call to always_inline" with -fpic
- References: <CAFULd4b4A-wW7Dvkr868DSV6SVeN=-K9YRz=1QeDfFBUB8MUEA at mail dot gmail dot com>
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.