From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id DFD663858D20; Wed, 9 Nov 2022 17:13:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFD663858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668014039; bh=i1gCN0ScCgV82fWYqLignEJNOpXTSK4ti6gmblJmiv0=; h=From:To:Subject:Date:From; b=jzNG1ay8RbXBzmZKY3O78EcjJjEbPBxXPMtpN50Dpe7BIHvEZU6KI8oQoyIs9QJW6 kicb71sWwt+dADuFR0aBFo5XtbYa4HvH9zpQLFpG4sNQkFctJjm0IcduGuk0Be7zGQ noi/j2/QexPvvPnk6lZ+9/u6S0DT8Lv78p0XZlNU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: ppc: drop obsolete USE_WIN32API check X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 8263b346fa07e3f679b05a8b369d491af51e6de8 X-Git-Newrev: 31b40f11f1cf7c79eff80bed214d3350a9a209a4 Message-Id: <20221109171359.DFD663858D20@sourceware.org> Date: Wed, 9 Nov 2022 17:13:59 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D31b40f11f1cf= 7c79eff80bed214d3350a9a209a4 commit 31b40f11f1cf7c79eff80bed214d3350a9a209a4 Author: Mike Frysinger Date: Thu Nov 10 00:11:17 2022 +0700 sim: ppc: drop obsolete USE_WIN32API check =20 This controls only one thing: how to call mkdir(). The gnulib code already has a mkdir module that provides this exact logic for us, so punt the code entirely. Diff: --- sim/ppc/config.in | 5 ----- sim/ppc/configure | 8 -------- sim/ppc/configure.ac | 10 ---------- sim/ppc/emul_unix.c | 4 ---- 4 files changed, 27 deletions(-) diff --git a/sim/ppc/config.in b/sim/ppc/config.in index 442835a9a76..4f28271351a 100644 --- a/sim/ppc/config.in +++ b/sim/ppc/config.in @@ -56,8 +56,3 @@ =20 /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS - -/* Define if we should use the Windows API, instead of the POSIX API. On - Windows, we use the Windows API when building for MinGW, but the POSIX = API - when building for Cygwin. */ -#undef USE_WIN32API diff --git a/sim/ppc/configure b/sim/ppc/configure index df95a6febf6..39a7ac934ce 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -3543,14 +3543,6 @@ else fi =20 =20 -case ${host} in - *mingw32*) - -$as_echo "#define USE_WIN32API 1" >>confdefs.h - - ;; -esac - ac_config_headers=3D"$ac_config_headers config.h:config.in" =20 =20 diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 542e8a105fb..cd9edd0de4c 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -381,16 +381,6 @@ if test x"$silent" !=3D x"yes" && test x"$sim_xor_endi= an" !=3D x""; then fi],[sim_xor_endian=3D""])dnl =20 =20 -case ${host} in - *mingw32*) - AC_DEFINE(USE_WIN32API, 1, - [Define if we should use the Windows API, instead of the=20 - POSIX API. On Windows, we use the Windows API when=20 - building for MinGW, but the POSIX API when building=20 - for Cygwin.]) - ;; -esac =20 - AC_CONFIG_HEADER(config.h:config.in) =20 =20 diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index 57691d4befc..1d8b7814ffc 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -760,11 +760,7 @@ do_unix_mkdir(os_emul_data *emul, if (WITH_TRACE && ppc_trace[trace_os_emul]) printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode); =20 -#ifdef USE_WIN32API - status =3D mkdir(path); -#else status =3D mkdir(path, mode); -#endif emul_write_status(processor, status, errno); } #endif