From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 385663989080; Fri, 16 Jul 2021 08:39:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 385663989080 Received: by mail-wm1-x32a.google.com with SMTP id f8-20020a1c1f080000b029022d4c6cfc37so6367638wmf.5; Fri, 16 Jul 2021 01:39:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K95lUsbMJsywf6kofDWEeaXjPc+PyiRVuDl+wPHPEA4=; b=MGFCVr7ckuL+N0JXotWm12M6yrAhfVRYjFZXEjy4vgD/HZyZWDQadU6rdIYWc1F7NT TGmAvN/8s5BumhsXKIlvB0GIXaIhENs8bsd+VrbCGbNHr0D/FkzLo3T/E3enrOx+VeCr JTpce5p2mojoX5k30pt6Qvw727fYkynj30jWoigCMVB+Ma+7UVzTw8CHRGQSr9P2bnO+ 6vm+hFpW4G9Jf2XfmoiGx4uzZkljNwkpQzrt+fI+tZY8jTCChYPPAJlPKWqipsFLzMWf HFMZg8H39wd+qy1xYinIyREpWhX4InGYAg1nUotFyTDv24Q3x2IiVKiqf8PY0qt5Nw3t w49w== X-Gm-Message-State: AOAM5327xrivUHE5NQpWUjrG8zpjNvnkktBOxKqx9U05lzzcp5rkIR6K BzUGOmWncIZbAnQwR1WFSF41frtDYWc56FVX57A= X-Google-Smtp-Source: ABdhPJy0/y7R+No8JLRKKq03gqi5mL5FrQjcX0kXrTPVK748cDv7fvITfbOd6rOM26Uu32g8CFb2UQHADiQtgMAVQ8Q= X-Received: by 2002:a05:600c:2211:: with SMTP id z17mr9246645wml.17.1626424797371; Fri, 16 Jul 2021 01:39:57 -0700 (PDT) MIME-Version: 1.0 References: <20210716082709.GD2380545@tucnak> <20210716082906.GE2380545@tucnak> In-Reply-To: From: Jonathan Wakely Date: Fri, 16 Jul 2021 09:39:45 +0100 Message-ID: Subject: Re: [committed] libstdc++: Suppress pedantic warnings about __int128 To: Jakub Jelinek Cc: Jonathan Wakely , "libstdc++" , gcc-patches X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2021 08:39:59 -0000 On Fri, 16 Jul 2021, 09:38 Jonathan Wakely, wrote: > > > On Fri, 16 Jul 2021, 09:30 Jakub Jelinek via Libstdc++, < > libstdc++@gcc.gnu.org> wrote: > >> On Fri, Jul 16, 2021 at 10:27:09AM +0200, Jakub Jelinek via Gcc-patches >> wrote: >> > On Fri, Jul 16, 2021 at 08:41:06AM +0100, Jonathan Wakely via >> Gcc-patches wrote: >> > > --- a/libstdc++-v3/include/bits/max_size_type.h >> > > +++ b/libstdc++-v3/include/bits/max_size_type.h >> > > @@ -417,7 +417,10 @@ namespace ranges >> > > #endif >> > > >> > > #if __SIZEOF_INT128__ >> > > +#pragma GCC diagnostic push >> > > +#pragma GCC diagnostic ignored "-Wpedantic" >> > > using __rep = unsigned __int128; >> > > +#pragma GCC diagnostic pop >> > >> > At least in simple cases like this, wouldn't >> > using __rep = __extension__ unsigned __int128; >> >> __extension__ using __rep = unsigned __int128; >> actually (now tested). >> > > Ah, thanks. I didn't find the right syntax, and I know __extension__ > doesn't work in other cases, like quad float literals, so I assumed it > doesn't work here. I suppose the literals don't work because the warning > comes from the processor, which doesn't understand __extension__ (and also > ignores the diagnostic pragma). > That grammar for a using-declaration makes no sense at all btw ;-)