From patchwork Thu Nov 30 23:18:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 843231 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-468291-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="gBv8tPIz"; 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 3yntdX3Kkfz9s8J for ; Fri, 1 Dec 2017 10:19:12 +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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=j5n9r1BqCVZyLiudq9KjaF8lwJQHX RX3Te5XGZQa5x9cQhyPF8a9J1MZ0PxjeXLl71kylQ885nUpASCSfCKi4BaknTV+Z hRZ7B3a+4Z5mWXrepherAFQ6BJefeCQpGnSGbU9JHXRKDv8jaTFhA//1fAeTOFuU 45uq/qfPDNyerI= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=24xNSsVqyfFKsBxxK/Okme5TUDM=; b=gBv 8tPIzsTwmS3H3ncnLd0y7huQTm13GXrSjsJEH97VXHGs+agbAMkTX7URzdsMs2ig 2Vi08njSVTMcX4ZqIK3bVluir+kDVrxU831HjUxlvPCP3Gq0tuzPlhrqGzo8aipY yu38Va99NS0uJmHN1X1G2lVoV6lUdHoqEMb86Qbc= Received: (qmail 23706 invoked by alias); 30 Nov 2017 23:19:02 -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 23641 invoked by uid 89); 30 Nov 2017 23:19:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, KB_WAM_FROM_NAME_SINGLEWORD, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:738, handwritten, hand-written X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Nov 2017 23:18:59 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 574477E420; Thu, 30 Nov 2017 23:18:58 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-77.ams2.redhat.com [10.36.116.77]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F365B5D9C8; Thu, 30 Nov 2017 23:18:57 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id vAUNItgk028860; Fri, 1 Dec 2017 00:18:56 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id vAUNItJR028859; Fri, 1 Dec 2017 00:18:55 +0100 Date: Fri, 1 Dec 2017 00:18:55 +0100 From: Jakub Jelinek To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix build of gimple-ssa-store-merging.c with -std=c++98 Message-ID: <20171130231855.GU2353@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes Hi! Markus reported that C++98 mode is unhappy about anonymous namespace with anonymous structure typed variables. The following should fix that, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2017-11-30 Jakub Jelinek PR tree-optimization/83233 * gimple-ssa-store-merging.c (nop_stats, bswap_stats): Use bswap_stat name for the struct. Jakub --- gcc/gimple-ssa-store-merging.c.jj 2017-11-21 14:53:50.000000000 +0100 +++ gcc/gimple-ssa-store-merging.c 2017-11-30 20:00:15.669946061 +0100 @@ -170,7 +170,7 @@ namespace { -struct +struct bswap_stat { /* Number of hand-written 16-bit nop / bswaps found. */ int found_16bit;