This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]