From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by sourceware.org (Postfix) with ESMTPS id 200C13858C78 for ; Fri, 12 May 2023 10:49:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 200C13858C78 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3064099f9b6so6376084f8f.1 for ; Fri, 12 May 2023 03:49:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683888560; x=1686480560; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=csdrZr6Og5KT4Wk3YNBdMmMa2bB92J+K+O/hsBusHns=; b=V+uSUpKHmV07D3LtFb932PsoAaMB+ZX+gLKipx5UgvmZhkhBo/n5rsh0YJ5CcHpsfI 8H+DjUGW61lKLQVI2M31vJe+URKgTmw+Ey/bz68s2q2LXkbGMpeB5boSvjGA0ivR6wMn um4I7ShjpIp67OPzGCULM8BK/VFuleX+ajWd92BCYGhAfyXwsEs9OcEZuMt5EuBJi7xN 1dIl3NOYBoM4YyfaGSqCfjdF3aDJZ+vddN4va0SMOl+SbZgmvzU+n83pmu08zi/8BJig VkgmP3WXIfV75+uyGCyJSktWaP0cDH6quO6YyHpYGwkOE6Fyr6WJ0myHZu6uG8TmRmel ItjA== X-Gm-Message-State: AC+VfDxHAoa6TSxXK7J+tkrf25CuQrocb08Gd9G8gucFtuv1cLEBOirA aXCSrS53WtfTtXxJ8GT2iz6o9zvqM7Y= X-Google-Smtp-Source: ACHHUZ6jVCd4iD8NP86Cu0rbqyNp36J49unDtAIaz+86l7CCEdjt9grx0L25Ul6oWeCBV0l7pRyedg== X-Received: by 2002:a5d:4008:0:b0:2f6:35c3:7752 with SMTP id n8-20020a5d4008000000b002f635c37752mr17469575wrp.57.1683888560064; Fri, 12 May 2023 03:49:20 -0700 (PDT) Received: from ?IPv6:2001:8a0:f91f:6c00::1fe? ([2001:8a0:f91f:6c00::1fe]) by smtp.gmail.com with ESMTPSA id f16-20020a5d4dd0000000b003062ad45243sm22977610wru.14.2023.05.12.03.49.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 03:49:19 -0700 (PDT) Subject: Re: More C type errors by default for GCC 14 To: Po Lu , Jason Merrill Cc: Eli Schwartz , Eli Zaretskii , gcc@gcc.gnu.org References: <87mt2behdl.fsf@yahoo.com> <57238276-5966-98d6-d5f0-f5451013ed17@gmail.com> <871qjned25.fsf@yahoo.com> <67e65b41-5400-d1c2-9f43-f94d0ea7da9b@gmail.com> <83zg6b5qsv.fsf@gnu.org> <6a892ea3-6859-955f-f491-d90ccaf562ca@gmail.com> <87ednmb7fj.fsf@yahoo.com> <87cz369jgt.fsf@yahoo.com> From: Pedro Alves Message-ID: <4988e142-0d3e-719e-7997-ae52f60fef6d@palves.net> Date: Fri, 12 May 2023 11:49:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <87cz369jgt.fsf@yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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: On 2023-05-12 7:01 a.m., Po Lu via Gcc wrote: > Jason Merrill writes: > >> You shouldn't have to change any of those, just configure with CC="gcc >> -fwhatever". > > If it were so simple... > > Many Makefiles come with a habit of using not CC_FOR_BUILD, but just > `cc', to build programs which are run on the build machine. Then write a wrapper script named "cc", and put that in the PATH: $ cat cc #!/bin/sh exec /my/real/gcc -fwhatever "$@" Done.