From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id B06DF3858D35 for ; Fri, 14 Jan 2022 16:27:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B06DF3858D35 Received: by mail-wm1-x333.google.com with SMTP id d18-20020a05600c251200b0034974323cfaso8393169wma.4 for ; Fri, 14 Jan 2022 08:27:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iSRmi4rQJ6WCx6326jDIQN3fYUyo8sr9tyW8Dmzqbc0=; b=3lYbIDqmmqvw3Z/Edx8y8v5/qY02pl+/UzXU1r1liQ4R7yvOgqCSDpxIh3251QKIQW CYAlfeYCSdgBMstuRo+Zvaswd6bBbfcR0BLrypToMHnHulnt8kktcIdOP5+XR8TE1iqH ojHX2BgbMfVLAG4t5HpTwlX/5Yth0LVp6TPhLQNa0fVRT/1tBMZUA+ZfsAhU29ZiRxOo onSDbkKkoCRmnnedru5IDsN+RSCPnLnSeL3YqeOlTsuN7RtIA0hw/3bvDx06fuaovKHy hKy2Jxn5lfHq1KO6TWHQCZfQQ8sbIdEMG+UL4c7MB7UnShS6+2avFlzwubK9ok0h2iUP dzUg== X-Gm-Message-State: AOAM530ev4kuYDE6Y1Clc4SQxYIEMFLpXd+sdxi48yqpyjf/xlBXwpa2 KCbUyFlnFu1AWMdpXEFOLtD6n+I2cdCfNcBqdFmKEQ== X-Google-Smtp-Source: ABdhPJzBdlrp6m+GkNQF6DjIle2RBvak2XSshiA3UMr3S64jc/ZA+OsKIE6kCRoT7A56LZF6Co8hsig/5RklRmjxxXI= X-Received: by 2002:a1c:a747:: with SMTP id q68mr16101374wme.98.1642177668697; Fri, 14 Jan 2022 08:27:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Gallager Date: Fri, 14 Jan 2022 11:27:37 -0500 Message-ID: Subject: Re: git hooks: too strict check To: Michael Matz Cc: =?UTF-8?Q?Martin_Li=C5=A1ka?= , GCC Development , Joel Brobecker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2022 16:27:51 -0000 On Fri, Jan 14, 2022 at 11:14 AM Michael Matz via Gcc wro= te: > > Hello, > > On Fri, 14 Jan 2022, Martin Li=C5=A1ka wrote: > > > Hello. > > > > I'm working on a testsuite clean-up where some of the files are wrongly= named. > > More precisely, so files have .cc extension and should use .C. However = there's > > existing C test-case and it leads to: > > > > marxin@marxinbox:~/Programming/gcc/gcc/testsuite> find . -name test-asm= .* > > ./jit.dg/test-asm.C > > ./jit.dg/test-asm.c > > You can't have that, the check is correct. There are filesystems (NTFS > for instance) that are case-preserving but case-insensitive, on those you > really can't have two files that differ only in casing. HFS for Macs behaves this way by default, too, for reference. > You need to find a different solution, either consistently use .cc instea= d > of .C, live with the inconsistency or rename the base name of these files= . > > > Ciao, > Michael. > > > > > test-kunlun me/rename-testsuite-files > > Enumerating objects: 804, done. > > Counting objects: 100% (804/804), done. > > Delta compression using up to 16 threads > > Compressing objects: 100% (242/242), done. > > Writing objects: 100% (564/564), 142.13 KiB | 7.48 MiB/s, done. > > Total 564 (delta 424), reused 417 (delta 295), pack-reused 0 > > remote: Resolving deltas: 100% (424/424), completed with 222 local obje= cts. > > remote: *** The following filename collisions have been detected. > > remote: *** These collisions happen when the name of two or more files > > remote: *** differ in casing only (Eg: "hello.txt" and "Hello.txt"). > > remote: *** Please re-do your commit, chosing names that do not collide= . > > remote: *** > > remote: *** Commit: 7297e1de9bed96821d2bcfd034bad604ce035afb > > remote: *** Subject: Rename tests in jit sub-folder. > > remote: *** > > remote: *** The matching files are: > > remote: *** > > remote: *** gcc/testsuite/jit.dg/test-quadratic.C > > remote: *** gcc/testsuite/jit.dg/test-quadratic.c > > remote: *** > > remote: *** gcc/testsuite/jit.dg/test-switch.C > > remote: *** gcc/testsuite/jit.dg/test-switch.c > > remote: *** > > remote: *** gcc/testsuite/jit.dg/test-asm.C > > remote: *** gcc/testsuite/jit.dg/test-asm.c > > remote: *** > > remote: *** gcc/testsuite/jit.dg/test-alignment.C > > remote: *** gcc/testsuite/jit.dg/test-alignment.c > > > > Can we please do something about it? > > > > Thanks, > > Martin > >