------- Comment #38 from fxcoudert at gcc dot gnu dot org 2008-02-22 14:11
-------
(In reply to comment #34)
> long double test(long double x) { return sinl(x); }
> long double test_(long double x) { return __builtin_sinl(x); }
>
> test_:
> jmp sinl$LDBL128
> test:
> jmp sinl
I get the same thing with my patch. Isn't that just because sinl, without
prototype, is seen as an extern function? (I don't know much about this)
I get a warning, though:
t.c:1: warning: incompatible implicit declaration of built-in function 'sinl'
Anyway, Fortran uses the function decls for BUILT_IN_SINL, which is the builtin
one, so it shouldn't matter, should it?
(In reply to comment #36)
> I think you should use set_user_assembler_name instead of
> SET_DECL_ASSEMBLER_NAME.
Nope. Doing this gives, for you C testcase with test and test_:
Undefined symbols:
"sinl$LDBL128", referenced from:
_test_ in ccYtxtFH.o
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25477