From patchwork Tue Jan 16 20:40:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 861882 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471419-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="lA/uiE7m"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 3zLhvY3285z9t2c for ; Wed, 17 Jan 2018 07:41:11 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=kNVS/I9qH90ll9HZ OPrVuYXXXz0pzZQzuenOO5A40VXOyORaJT46IN+EBKXLwtC5dbaRIZ5PR/mQQFqA 1Ua1N/RBfF2883twfytVuWOHMixbzJERhv/2SD6x7k0fnXabw6sjJiaYTL+KFUfN AemMkWN53EVqSXdL6mdnDO12JVc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=I5CP24onEiW6RZAN+l1GqD 7Iscw=; b=lA/uiE7mw7FYm1ek3Nfe2Ko8cReDq7mTkPWGHXg/fKQvVSxnlscjr/ nbaGMD7AYdBvIqvghCaXR72JdMqsuErlsRotbiuHR8fqwLENtGHtuzq+U2Wogs7f jZTIgxvumM/QPSVQ7LZOVWM6mgsAg613NcHEC6YXnhBfYV4xOpHbg= Received: (qmail 113787 invoked by alias); 16 Jan 2018 20:41:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 113761 invoked by uid 89); 16 Jan 2018 20:41:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=17_intro, stdc X-Spam-User: qpsmtpd, 2 recipients X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Jan 2018 20:41:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 062478139C; Tue, 16 Jan 2018 21:41:00 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ljFyDwOBooUs; Tue, 16 Jan 2018 21:40:59 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id D7AAD8138F; Tue, 16 Jan 2018 21:40:59 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [libstdc++] Fix 17_intro/names.cc on SPARC/Linux Date: Tue, 16 Jan 2018 21:40:59 +0100 Message-ID: <6741390.99XH3mjCFH@polaris> MIME-Version: 1.0 The SPARC-V8 architecture contains a Y register so defines a structure with a 'y' field on Linux. Tested on SPARC64/Linux, applied on the mainline and 7 branch as obvious. 2018-01-16 Eric Botcazou * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux. Index: testsuite/17_intro/names.cc =================================================================== --- testsuite/17_intro/names.cc (revision 256562) +++ testsuite/17_intro/names.cc (working copy) @@ -112,4 +112,8 @@ #undef r #endif +#if defined (__linux__) && defined (__sparc__) +#undef y +#endif + #include