From 2ebb811a77c5b3e155376fea6ea4dec234d3ce80 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 3 May 2020 15:47:38 -0400 Subject: [PATCH] Force libiberty to consider all filesystems as potentially case-sensitive. Whose idea was this?! Fixes #14963. --- binutils/include/filenames.h | 4 ++++ gcc/include/filenames.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/binutils/include/filenames.h b/binutils/include/filenames.h index 1bcfddb87a..f27a144bda 100644 --- a/binutils/include/filenames.h +++ b/binutils/include/filenames.h @@ -36,17 +36,21 @@ extern "C" { # ifndef HAVE_DOS_BASED_FILE_SYSTEM # define HAVE_DOS_BASED_FILE_SYSTEM 1 # endif +/* # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # endif +*/ # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) #else /* not DOSish */ # if defined(__APPLE__) +/* # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # endif +*/ # endif /* __APPLE__ */ # define HAS_DRIVE_SPEC(f) (0) # define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c) diff --git a/gcc/include/filenames.h b/gcc/include/filenames.h index 6164048c27..47e4fd9906 100644 --- a/gcc/include/filenames.h +++ b/gcc/include/filenames.h @@ -36,17 +36,21 @@ extern "C" { # ifndef HAVE_DOS_BASED_FILE_SYSTEM # define HAVE_DOS_BASED_FILE_SYSTEM 1 # endif +/* # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # endif +*/ # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) #else /* not DOSish */ # if defined(__APPLE__) +/* # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # endif +*/ # endif /* __APPLE__ */ # define HAS_DRIVE_SPEC(f) (0) # define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c)