From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 4F02C3857004 for ; Tue, 16 May 2023 11:01:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F02C3857004 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684234918; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=qcK5IOlLUoTOBr2TMH9pVdJo6O65D35bToO8ITnW43U=; b=in9ymikwQpukKlLNJWmDjmTQEdh/bBpYrO6T7d2r9GF/gFFp4NtSXCtxrmk5QTx+n05jmY dlf29QCNJHGigQXTPtHOiBdGSsiYu5f8yZct9yFdSBLEn3YKKk3VhXgIn3ttEgD6+fWzW7 CiP467iI6yuXBSX06SaWvfJjgockQuE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-175-4afYi8iEMaOzv0kg226cHA-1; Tue, 16 May 2023 07:01:55 -0400 X-MC-Unique: 4afYi8iEMaOzv0kg226cHA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EDFCB185A78B; Tue, 16 May 2023 11:01:54 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ADF7363ABB; Tue, 16 May 2023 11:01:54 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 34GB1pBt195700 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 16 May 2023 13:01:51 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 34GB1nqe195699; Tue, 16 May 2023 13:01:49 +0200 Date: Tue, 16 May 2023 13:01:49 +0200 From: Jakub Jelinek To: Alexander Monakov Cc: Florian Weimer , Michael Matz , Gabriel Ravier , Joseph Myers , Eli Zaretskii , jwakely.gcc@gmail.com, gcc@gcc.gnu.org, arsen@aarsen.me Subject: Re: More C type errors by default for GCC 14 Message-ID: Reply-To: Jakub Jelinek References: <83mt2c6tch.fsf@gnu.org> <871qjlh9t3.fsf@mid.deneb.enyo.de> <87jzxdfne0.fsf@mid.deneb.enyo.de> <3d157d9c-0504-b8b4-46f6-54ea90374765@gmail.com> <4989d9fb-366a-4103-aedc-ce725ef131a8@ispras.ru> <878rdtfmdw.fsf@mid.deneb.enyo.de> <87ilcs64f8.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, May 16, 2023 at 01:39:26PM +0300, Alexander Monakov wrote: > > On Tue, 16 May 2023, Florian Weimer wrote: > > > > (FWIW: no, this should not be an error, a warning is fine, and I actually > > > think the current state of it not being in Wall is the right thing as > > > well) > > (this is mixed up, -Wpointer-sign is in fact enabled by -Wall) > > > I don't understand why we do not warn by default and warn with -Wall. I > > would expect this to be either a documented extension (no warning with > > -Wall), or a warning by default (because it's a conformance issue). Is > > there any conformance issue that is treated in the same way? > > Another one is -Wpointer-arith (pointer arithmetic on 'void *'). That is a documented GNU extension, so we shouldn't increase severity of the diagnostics from the current state. Jakub