tls_model in clang?

Ben Laurie ben at links.org
Tue Jun 28 15:41:42 UTC 2011


.../lib/libc/stdlib/malloc.c:1106:38: warning: unknown attribute
'tls_model' ignored [-Wattributes]
static __thread arena_t         *arenas_map TLS_MODEL;
                                            ^
.../lib/libc/stdlib/malloc.c:243:37: note: instantiated from:
#  define TLS_MODEL             __attribute__((tls_model("initial-exec")))

Any thoughts on what we should do under clang?

Given that things appear to work, perhaps just set TLS_MODEL to nothing?

-- 
http://www.apache-ssl.org/ben.html           http://www.links.org/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff


More information about the freebsd-hackers mailing list