[Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 22 14:49:00 GMT 2008
------- Comment #40 from ubizjak at gmail dot com 2008-02-22 14:49 -------
This simple proof-of-concept patch works as expected:
--cut here--
Index: langhooks.c
===================================================================
--- langhooks.c (revision 132541)
+++ langhooks.c (working copy)
@@ -557,6 +557,9 @@ add_builtin_function (const char *name,
gcc_assert (DECL_FUNCTION_CODE (decl) >= function_code);
DECL_FUNCTION_CODE (decl) = function_code;
+ if (function_code == BUILT_IN_SINL)
+ library_name = "sinl$LDBL128";
+
if (library_name)
{
tree libname = get_identifier (library_name);
--cut here--
test_:
jmp sinl$LDBL128
test:
jmp sinl$LDBL128
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25477
More information about the Gcc-bugs
mailing list