From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fencepost.gnu.org (fencepost.gnu.org [IPv6:2001:470:142:3::e]) by sourceware.org (Postfix) with ESMTPS id A5CC83858D33 for ; Thu, 11 May 2023 05:47:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A5CC83858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qve1rZM7w/6CIakpntNkCI0OySsm3xTu2B8kGxRovB0=; b=Au6bsxNp3xPf Ch6hnM2XBC4tLsv6+wDevaJIvECaYuT2iM7aM5qMpxXFreq724xxNsf7XToX1ibZ/LQk32niTL8C6 KQnzbH9vCSEGAX+0K3uSQNS/Liew7lvVVMkvDCR0qkSERBsxOJIELHO5OynRUfTo5bfv1IwGO9ggm 3wFnf4UWZSzc1d0ujRDQMIUxdylsrvOAaKnJfsqyJdnrb6VRjdTzGdIg2EEkAp+ll14m3zWg5lgXA X00M9GJaSsTH36QwFjyECMn3ql6EA//AWP9WpWlOufIo5S8zye4AYqs2i7X4SlJwjqUhJqFWw8+JE DCA561jjOggKAEf7wnMP+A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwz9Y-0002pN-8H; Thu, 11 May 2023 01:47:49 -0400 Date: Thu, 11 May 2023 08:48:56 +0300 Message-Id: <837ctf7707.fsf@gnu.org> From: Eli Zaretskii To: "James K. Lowden" Cc: gcc@gcc.gnu.org, jwakely.gcc@gmail.com In-Reply-To: <20230510143750.417de4d214583a398737337f@schemamania.org> (jklowden@schemamania.org) Subject: Re: More C type errors by default for GCC 14 References: <877cth66qb.fsf@oldenburg.str.redhat.com> <20230509102201.6aa2a7d14fdb2f1e7abff449@killthe.net> <87r0rp5uf8.fsf@aarsen.me> <83ttwla1ep.fsf@gnu.org> <83lehx9vix.fsf@gnu.org> <83fs859unu.fsf@gnu.org> <20230510143750.417de4d214583a398737337f@schemamania.org> X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Wed, 10 May 2023 14:37:50 -0400 > From: "James K. Lowden" > Cc: Jonathan Wakely > > On Tue, 9 May 2023 23:45:50 +0100 > Jonathan Wakely via Gcc wrote: > > > On Tue, 9 May 2023 at 23:38, Joel Sherrill wrote: > > > We are currently using gcc 12 and specifying C11. To experiment > > > with these stricter warnings and slowly address them, would we need > > > to build with a newer C version? > > > > No, the proposed changes are to give errors (instead of warnings) for > > rules introduced in C99. GCC is just two decades late in enforcing the > > C99 rules properly! > > This, it seems to me, is the crux of the question. Code that does not > conform to the standard should produce an error. That's not what the standard says, and that's not how GCC behaves. GCC has options to enforce the standard, but other than that, it doesn't reject extensions and deviations from the standard.