From patchwork Thu Mar 20 11:28:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 188 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (caibbdcaaahc.dreamhost.com [208.113.200.72]) by wilcox.dreamhost.com (Postfix) with ESMTP id C61D136014C for ; Thu, 20 Mar 2014 04:28:28 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14307373) id 6CE5B408B4298; Thu, 20 Mar 2014 04:28:28 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx20.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id 6DA2B408B429E for ; Thu, 20 Mar 2014 04:28:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=YmGJqYl/C7GhIi9rEhWYune1gMVH7 TEYpAUhiktAeJks3KZGwsa+NWRc6wAYPowkiG4fu60jzMGYqvXOJWuSWYObYtQdx JmJdUbhUxvAUjMhS7MHPt/iLaDHQluRZRuKjT7Oxt2HKGpma3Hkn2FhlicV9h1Qk 1n3u9rdt2uxn38= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type; s=default; bh=GSf9lIcdv1sWmXDyA/U4v5lm/fo=; b=vyL dcEoTRvLyHEZqw1zTsSDn97F86Ia5p5CtRODCGSmQVus8ibhABQsJ+XBHSBXWnlW rZ1AuzPWxoEhnEliuoMtWpMYVpZsOAi3KmWvRodyyoN+rhFhOmebWEdfWo++MYkK LskYJIIB2SwVaMmwqCglt5occLdn+lskIJ6QCRGs= Received: (qmail 1512 invoked by alias); 20 Mar 2014 11:28:25 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 1501 invoked by uid 89); 20 Mar 2014 11:28:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: [PATCH] S/390: Define __PTHREAD_MUTEX_HAVE_ELISION. Date: Thu, 20 Mar 2014 12:28:08 +0100 Lines: 45 Message-ID: Mime-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-DH-Original-To: glibc@patchwork.siddhesh.in Hi, according to the -Wundef flag, i got a warning on S390 for __PTHREAD_MUTEX_HAVE_ELISION. In combination with the -Werror flag for nptl/tst-initializers1* testcases, the prerequirements for make check fails because of build-errors and no tests.sum is generated. For S/390 lock elision is currently not available. Bye --- 2014-03-20 Stefan Liebler * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (__PTHREAD_MUTEX_HAVE_ELISION): New define. --- diff --git a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h index a361db6..23a1698 100644 --- a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h +++ b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h @@ -20,6 +20,8 @@ #include +# define __PTHREAD_MUTEX_HAVE_ELISION 0 + #if __WORDSIZE == 64 # define __SIZEOF_PTHREAD_ATTR_T 56 # define __SIZEOF_PTHREAD_MUTEX_T 40