This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [IFUNC] PATCH: Add an ifunc attribute
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Jul 2009 23:07:16 -0700
- Subject: Re: [IFUNC] PATCH: Add an ifunc attribute
- References: <20090628151052.GA17118@lucon.org> <6dc9ffc80906280937s29a84c5eg43c673e487476bb7@mail.gmail.com> <84fc9c000906280957r26be86d4h8130d8d0ae5455a1@mail.gmail.com> <6dc9ffc80906281001r45d475d0t151eb0f2bf478647@mail.gmail.com> <84fc9c000906281020h6a63ed83kd109df656729229a@mail.gmail.com> <6dc9ffc80906281027u37d13ec7w931add5f095b1df9@mail.gmail.com> <84fc9c000906281113td6522cxd0f5057512874eed@mail.gmail.com> <6dc9ffc80906281208m67e7abb8q5b35b405f77e572@mail.gmail.com> <Pine.LNX.4.64.0906281928420.26388@digraph.polyomino.org.uk> <6dc9ffc80906281239u2589c6f0uc12fae2225d421db@mail.gmail.com> <84fc9c000906281240y39c679e3uc54a5eeb716fa126@mail.gmail.com>
Richard Guenther wrote:
>> When using asm to change C++ symbol name, you have to mangle it
>> by hand. When you change the prototype of the ifunc function,
>> you have to mangle the symbol name again. Should we ask gcc
>> users which approach is better?
>
> No.
Richard, I disagree with your position in this thread. In particular, I
do think that we should try to make this attribute work for C++ without
users having to do by-hand mangling of names. That's clearly the right
user interface; C++ programmers should never have to know about mangling.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713