[Bug target/59888] Darwin linker error "illegal text-relocation" with -shared

fxcoudert at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 16 21:48:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59888

--- Comment #12 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #11)
> The change occurred at r190003 and an error
> Error: TS 29113: Noninteroperable argument 'gee' to 'c_funloc' at (1)
> is emitted if one uses -std=f2008.

I realize that in simplifying the testcase, I made it non-standard conforming.
Try the same revisions with the amended program below, I fear the error message
might be a red herring:

module foo
contains
  subroutine bar
    use, intrinsic :: iso_c_binding
    call gee(c_funloc(gee))
  end subroutine
  subroutine gee(f) bind(c)
    use, intrinsic :: iso_c_binding
    type(c_funptr) :: f
  end subroutine 
end module foo



More information about the Gcc-bugs mailing list