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]

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


Hello!

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?

Uros.

Attachment: t.diff.txt
Description: Text document


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