From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id C4E363856DE7 for ; Wed, 10 May 2023 12:41:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4E363856DE7 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1929d8c009cso5569673fac.2 for ; Wed, 10 May 2023 05:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683722511; x=1686314511; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=HoYc7upy1FRG+zn+0BsfMBeAYF85TNVqoCKlRCSkR8g=; b=eJ2sdCFxHLMaIcYNwUxYb1iEiTcfNlWTkUrSgbz0+9HVR/NuIvqpxRX47R9DUask87 GIYlFwF1BoUZnp5QFI72Kqv5Eymwzc5/GbNsQhZZb2HFc4waZaWHoHgxdwmL8B+NkXBJ pZaHx9sf+LgIxrc++i3ZBH5XAdgay50zc1Fkxb4+av3Es+qgtkpiUKu9gKgEqfby3qvc YpNoAOMZaYnPYr99zZRtFH1+zLjXpJSoszKG7SIQ8lxFT7XrXwTiJNJRBxk6hcyPKM53 rrIXFKKPXUqfNox5iHv5HbDppLx7AYG584APYaGVYUOLpck8rohtWJOWn6DpRniVcTNB kgqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683722511; x=1686314511; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HoYc7upy1FRG+zn+0BsfMBeAYF85TNVqoCKlRCSkR8g=; b=ewOgUX2EhVCyQyE6Isw4dlp0imsiO/U0Mby9vYJxO0OivUQU8YQkMGiuAtS4AYdA5X /1DrIJ0YKPcVcleMmNpYrZBLIsqNUJpl2AVWH7BkxSAbt895WPnM06HzDW7G3JvIro1K G6EjVnet11kWOiT9680IJWhAFlWeDB/HzMkyEF9nGp3JTsx2r+tvtYQUUSjKUc/3D9YD XI1jUzqrxiIs58JJzj6H3M5fEHuo2duxR6o0jW97zxy2TAreNSFmWFRcT8cSA6wv4sFH z0yd06k2KH2IfGUsB440e1k7V/qZpN6iYd73SBhoqnlxDXHEerBsUSw1jMFsv56BhRwm Ogrg== X-Gm-Message-State: AC+VfDx84iv37TV22ntPaNEGG/QinJSYHR7TO9WbKk9kBtuYLisOZcZz NHDBOVWsUINO/XLfuYCOgJW3X9tEWLBSf0oCnug= X-Google-Smtp-Source: ACHHUZ5T+BZn8X54qxtjZRArQ4g93mU1seK0c/LIeeLKA5015DopOZgrYYeGrJHcEhzAxSUuBfHSFilEkwvHf3+hsLw= X-Received: by 2002:a05:6871:6bb0:b0:196:6493:d0ac with SMTP id zh48-20020a0568716bb000b001966493d0acmr305366oab.59.1683722511141; Wed, 10 May 2023 05:41:51 -0700 (PDT) MIME-Version: 1.0 Reply-To: marcinjaczewski86@gmail.com From: Marcin Jaczewski Date: Wed, 10 May 2023 14:41:40 +0200 Message-ID: Subject: More C type errors by default for GCC 14 To: Eli Zaretskii , gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: I think the biggest problem you have is that you try to upgrade the compiler to compile code that nobody has touched in 30years. Adding `-fpermissive` is the least concern you should have. Did you even check if the compiler outpost is still correct? As you are really on some obsolete functionality it could easily rot and the new compiler can not handle it correctly. You mention "validations and verifications", do you do the same with the new compiler? If you can't touch code then you SHOULD not upgrade the compiler. If you upgrade the compiler you SHOULD upgrade code. Any big project (like Linux) shows these two rules are critical, there were multiple cases of security bugs caused by subtle change in behavior of the compiler. Compiling very old code is lability if nobody knows how it should work and nobody maintains it. Who can give you guarantee that the result is correct? Very old programs should even by default reject new compilers by default until someone does not check if it correctly compiles on new compilers.