From patchwork Wed Mar 26 17:36:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 299 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (caibbdcaaahb.dreamhost.com [208.113.200.71]) by wilcox.dreamhost.com (Postfix) with ESMTP id E662F3601E0 for ; Wed, 26 Mar 2014 10:37:06 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id 906A9C5E617; Wed, 26 Mar 2014 10:37:06 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx21.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-mx21.g.dreamhost.com (Postfix) with ESMTPS id 5A6BAE49B7D for ; Wed, 26 Mar 2014 10:37:06 -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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=GyZ c64pASlEsOLQ6Hb3vo/GAHQ9ANEFd+4yaNrGy+TcUXe+P/9ZeM69UQrfgSvZV+cj 8LQ713LbdymBnWAivygTou7RZ6mevfNI5ZCH2mBcHB7WPndbzjyALNGERM6opaB3 8W0sukTHjao1t2y9oqlChhF417VX1nWuiUheEGEA= 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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=sdWmIUe5O xwPpKKb7y45zgVQxSA=; b=ybseXQU2bDVVvEqmvGEOIUTrnQzyWo5RPvqq+Q/qB JUbvr2Co87z0hA+xGRPo8odyIERMGErXow+T6zxlRmHBO1Q/X+e8vcXqAplOGTl4 eW6juk4nYof5+I/S+14NzSD2Wl8bcFl9UluFEjwcNbKerhlT3uv2u+fXfkbSucvQ Po= Received: (qmail 12594 invoked by alias); 26 Mar 2014 17:36:15 -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 12532 invoked by uid 89); 26 Mar 2014 17:36:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp04.br.ibm.com Message-ID: <53331005.1080804@linux.vnet.ibm.com> Date: Wed, 26 Mar 2014 14:36:05 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: Define _STRING_ARCH_unaligned unconditionally X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14032617-1820-0000-0000-000000331DC0 X-DH-Original-To: glibc@patchwork.siddhesh.in This is a respin on my initial try to remove the undefined _STRING_ARCH_unaligned from PPC64 builds, but now extended to all arch that do not define it. This patch defines _STRING_ARCH_unaligned to 0, mimicking old undefined behavior. --- * bits/string.h (_STRING_ARCH_unaligned): Define it to 0. --- diff --git a/bits/string.h b/bits/string.h index f8630d2..42516d4 100644 --- a/bits/string.h +++ b/bits/string.h @@ -8,5 +8,6 @@ #ifndef _BITS_STRING_H #define _BITS_STRING_H 1 +#define _STRING_ARCH_unaligned 0 #endif /* bits/string.h */