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 DFC453858289 for ; Thu, 30 Nov 2023 21:27:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DFC453858289 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DFC453858289 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701379661; cv=none; b=uuYfI3h3W1ETtkgZTLmj3rS9LiPymyeHG78JDHQ4Y/bMrPUUX4r9ec8hLPyPDVsfkd2+meg3DNWNNElZRDrpl0di9hOyRm1hrbaCqQThJRolU95jSKksrquVBxmHk+uRXn36mfwZqhO3m6fdHxZLigkcUBguedwhPMWJBGTT8/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701379661; c=relaxed/simple; bh=MNjI+MxVpW32tqm1fzvw/UpK1/mVjRP3soF2fvtvxXk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=e+khAbdGwRKhXazYdVyIfwk2vOIc3z+Z8sUSqROOg1HA1r/vtw+7OgmKDyXZ/njpe/FgxMAwefuuC2OEqSJ6AlxQZIJHhxu99ZW0rApZRUgotKzjarI2aWnIltnqO158RTOLb5uI3JyhGqfet9GrW6s36KO2XUNdp5f0la57+50= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701379659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KZ10OVR/VJ7qFkYIIqxuYi+xNTdF6ui9C2cjs3Jj4rk=; b=K+0VWNDZ8DOBCgX/psbAhRuxXkaBs1gWBZrxd/cqMM/uVH6bSGnZV1+WWcrpwIc+iPmGx3 Dqwrh4Vk/CRVOEow+Q0D7wMyIQOMIl2dhkVwB45nkVKlUqCadk4FaSrIUB30ZTf61z58NT MaxE8T28qj/4GOGaRWAE2nd7fQmIA/c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-683-A1xAJ4gyMxGaLmgh5u73og-1; Thu, 30 Nov 2023 16:27:35 -0500 X-MC-Unique: A1xAJ4gyMxGaLmgh5u73og-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 81A13817040 for ; Thu, 30 Nov 2023 21:27:35 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CC01C2026D68; Thu, 30 Nov 2023 21:27:34 +0000 (UTC) From: Florian Weimer To: Jakub Jelinek Cc: Marek Polacek , gcc-patches@gcc.gnu.org, Jason Merrill Subject: Re: [PATCH v3 10/11] c: Turn -Wincompatible-pointer-types into a permerror References: <9e40a64880a14cf27d788ecbaf23365b9a5ac069.1700473918.git.fweimer@redhat.com> <87leafrloc.fsf@oldenburg.str.redhat.com> Date: Thu, 30 Nov 2023 22:27:33 +0100 In-Reply-To: (Jakub Jelinek's message of "Thu, 30 Nov 2023 22:23:35 +0100") Message-ID: <87h6l3rkxm.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Jakub Jelinek: > On Thu, Nov 30, 2023 at 04:15:26PM -0500, Marek Polacek wrote: >> On Thu, Nov 30, 2023 at 10:11:31PM +0100, Florian Weimer wrote: >> > * Marek Polacek: >> >=20 >> > > On Mon, Nov 20, 2023 at 10:56:36AM +0100, Florian Weimer wrote: >> > >> --- a/gcc/doc/invoke.texi >> > >> +++ b/gcc/doc/invoke.texi >> > >> @@ -6183,6 +6183,7 @@ that have their own flag: >> > >> @gccoptlist{ >> > >> -Wimplicit-function-declaration @r{(C)} >> > >> -Wimplicit-int @r{(C)} >> > >> +-Wincompatible-pointer-types @r{(C)} >> > >> -Wint-conversion @r{(C)} >> > >> -Wnarrowing @r{(C++)} >> > >> -Wreturn-mismatch @r{(C)} >> > > >> > > BTW, should the C ones mention Objective-C as well? >> >=20 >> > Isn't there Objective-C++ as well? I assumed it applied to both >> > dialects. >>=20 >> I think we usually spell both, if they apply. But you can leave it as i= t is. > > Seems we use (C and Objective-C only) (40 times) in preference to (C only= ) > (4 times), (C++ and Objective-C++ only) (61 times) in preference to (6 > times), but (C and C++ only) (5 times) and never all 4 languages, even > when I think it is very likely some switch would be C only, C++ only or > C and C++ only. And (C) is used just for Copyright ;) So it should say =E2=80=9CC and Objective-C only=E2=80=9D for the C stuff, = and =E2=80=9CC++ and Objective-C++ only=E2=80=9D for -Wnarrowing? Jason, does the -Wnarrowing aspect of -fpermissive apply to Objective-C++ as well, or is it stuck at C++98? Thanks, Florian