From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B4333861889; Tue, 28 Nov 2023 16:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B4333861889 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701190104; bh=zhpxJADDWCLqdus+5MQRYE5rWjnl4oPotB3kGVpdkX4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EZcHwQpbibzDGBYmJ8mR+CP1JZIZby961E4iKWsEy3vnAM36aS+PlrXjYJQhmXIT7 Z7PqTZbyK5dcfxwNKt9KCFUc68TMDbG0kSEg0V2VSvNDC3WHvHVoTMeXlKIWxt9f2d 8R9h6xBBMJm4WG1ZjJ3NxCviLOGmMwhNmAtI88Ow= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/111909] Filename case sensitivity defaulted wrongly on macOS Date: Tue, 28 Nov 2023 16:48:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: simon at pushface dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111909 --- Comment #3 from GCC Commits --- The master branch has been updated by Marc Poulhi?s : https://gcc.gnu.org/g:396db92d3aa7412dd7133563fecbc6237fa81c02 commit r14-5936-g396db92d3aa7412dd7133563fecbc6237fa81c02 Author: Simon Wright Date: Tue Nov 28 14:56:36 2023 +0100 Fix PR ada/111909 On Darwin, determine filesystem case sensitivity at runtime In gcc/ada/adaint.c(__gnat_get_file_names_case_sensitive), the current assumption for __APPLE__ is that file names are case-insensitive unless __arm__ or __arm64__ are defined, in which case file names are declared case-sensitive. The associated comment is "By default, we suppose filesystems aren't case sensitive on Windows and Darwin (but they are on arm-darwin)." This means that on aarch64-apple-darwin, file names are treated as case-sensitive, which is not the default case. The true default position is that macOS file systems are case-insensitive, iOS file systems are case-sensitive. Apple provide a header file which permits a compile-time check for the compiler target (e.g. OSX vs IOS); if TARGET_OS_IOS is defined as 1, this is a build for iOS. 2023-11-22 Simon Wright gcc/ada/ PR ada/111909 * adaint.c (__gnat_get_file_names_case_sensitive): Split out the __APPLE__ check and remove the checks for __arm__, __arm64__. For Apple, file names are by default case-insensitive unless TARGET_OS_IOS= is set. Signed-off-by: Simon Wright =