From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 28 15:41:42 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2A44106566B for ; Tue, 28 Jun 2011 15:41:42 +0000 (UTC) (envelope-from ben@links.org) Received: from mail.links.org (mail.links.org [217.155.92.109]) by mx1.freebsd.org (Postfix) with ESMTP id 8E24A8FC0C for ; Tue, 28 Jun 2011 15:41:42 +0000 (UTC) Received: from [193.133.15.218] (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.links.org (Postfix) with ESMTPS id 6491733C1A for ; Tue, 28 Jun 2011 16:41:41 +0100 (BST) Message-ID: <4E09F633.7040203@links.org> Date: Tue, 28 Jun 2011 16:41:39 +0100 From: Ben Laurie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: hackers@FreeBSD.org X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: tls_model in clang? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 15:41:42 -0000 .../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