[patch, libobjc] export __objc_get_forward_imp, get_imp again
Marek Polacek
polacek@redhat.com
Wed Jan 21 09:23:00 GMT 2015
On Wed, Jan 21, 2015 at 10:02:07AM +0100, Matthias Klose wrote:
> __objc_get_forward_imp and get_imp were exported in libobjc since GCC 4.1, for
> some reason these are not exported anymore in GCC 5 (both declared inline). So
> either export these as before, or don't export them and bump the soname. The
> latter seems to be unwanted, and at least gnustep-base is using the get_imp
> function. So better keep the references in GCC 5?
>
> Is this an intended change in GCC 5 to not to export inline methods anymore?
See https://gcc.gnu.org/gcc-5/porting_to.html
> libobjc/
>
> * sendmsg.c (__objc_get_forward_imp, get_imp): Declare extern inline.
>
> --- a/src/libobjc/sendmsg.c
> +++ b/src/libobjc/sendmsg.c
> @@ -105,7 +105,7 @@
> id nil_method (id, SEL);
>
> /* Given a selector, return the proper forwarding implementation. */
> -inline
> +extern inline
> IMP
> __objc_get_forward_imp (id rcv, SEL sel)
> {
> @@ -320,7 +320,7 @@
> return res;
> }
>
> -inline
> +extern inline
> IMP
> get_imp (Class class, SEL sel)
> {
Looks ok.
Marek
More information about the Gcc-patches
mailing list