This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -finstrument-functions leads to unsats to _mm instrinsic wrappers
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Xinliang David Li <davidxl at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 7 Dec 2011 16:25:08 -0800
- Subject: Re: -finstrument-functions leads to unsats to _mm instrinsic wrappers
- References: <CAAkRFZ+v0MzugWORO-i5kyD+2nKgfNhzFyv_3UaVx+p=ENk=TA@mail.gmail.com>
On Wed, Dec 7, 2011 at 4:01 PM, Xinliang David Li <davidxl@google.com> wrote:
> Build the test case in the patch file with -finstrument-functions, the
> link will fail with unsat. The problem is gcc instruments the
> artificial wrappers that will won't be emitted. The patch fixes the
> problem. Bootstrap and tested on x86-64/linux.
>
I think you really should be checking for artificial attribute and not
looking at always_inline.
Thanks,
Andrew Pinski