Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 940D510788 for ; Fri, 12 May 2023 12:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683894611; 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=uy+yvAMqlyFYKgayyRv/tgOz40F9v+PNmPzZzLq1fms=; b=IoUN9bl2cb1eQGoQ98zistZ4srXtEddsyBK79TdwNM1aLxVYMYE2fkDnJQrmjSzQi772uD 89LRpVbTVOiEFKaApKvuOesoEK/JM8WrzGjDGxzx2JNvF4YlR7KyJ/bdzgfH6Hm0ipXr5S 8jQ8Dfp65oK7Fulv/khrUwtE6oIT2+Y= 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-56-ntSw8LWfP5u7xojkgMpOXg-1; Fri, 12 May 2023 08:30:10 -0400 X-MC-Unique: ntSw8LWfP5u7xojkgMpOXg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ADD07863E8A; Fri, 12 May 2023 12:30:09 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.194.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FF821121314; Fri, 12 May 2023 12:30:09 +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 34CCU6gQ155246 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 12 May 2023 14:30:07 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 34CCU5jS155245; Fri, 12 May 2023 14:30:05 +0200 Date: Fri, 12 May 2023 14:30:05 +0200 From: Jakub Jelinek To: Martin Jambor Cc: Florian Weimer , gcc@gcc.gnu.org, c-std-porting@lists.linux.dev Subject: Re: More C type errors by default for GCC 14 Message-ID: Reply-To: Jakub Jelinek References: <877cth66qb.fsf@oldenburg.str.redhat.com> Precedence: bulk X-Mailing-List: c-std-porting@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 12, 2023 at 11:33:01AM +0200, Martin Jambor wrote: > > One fairly big GCC-internal task is to clear up the C test suite so that > > it passes with the new compiler defaults. I already have an offer of > > help for that, so I think we can complete this work in a reasonable time > > frame. I'd prefer to keep at least significant portion of those tests as is with -fpermissive added (plus of course we need new tests that verify the errors are emitted), so that we have some testsuite coverage for those. > So, a note to all users of cvise, creduce, delta etc.: Add appropriate > -Werror flags to your checking scripts so that we don't add more of this :-) While it is true that for C cvise/creduce/delta often end up with the implicit ints/implicit function declarations/int-conversions because it happens to still compile without errors, I and others routinely fix up those testcases back to valid C provided they still reproduce the reported problem, so I think it isn't that bad in our testsuite. But for cvise/creduce/delta reduced testcases with GCC 14 the nice things is that most of the time these constructs will be gone ;) Note, using -Werror for all warnings for testsuite reduction often results in much slower reduction process and larger end result compared to allowing some warnings but then fixing them up by hand where possible if it still reproduces. Jakub