]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: ppc: drop build-config.h usage
authorMike Frysinger <vapier@gentoo.org>
Mon, 1 Jan 2024 20:26:21 +0000 (15:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 1 Jan 2024 20:59:11 +0000 (15:59 -0500)
This header is only used by the igen tool, and none of the igen code
depends on the configure-time checks.  Delete the logic to simplify
to prepare for moving it to the local.mk code.

sim/ppc/configure
sim/ppc/configure.ac
sim/ppc/filter.c
sim/ppc/igen.c
sim/ppc/lf.c
sim/ppc/misc.c
sim/ppc/misc.h
sim/ppc/table.c

index 04d09567b473aab39448f5d427d16b3e2280c5c8..59c4d17d3442de618b7f5a13b5170aa421f80ce2 100755 (executable)
@@ -4147,38 +4147,6 @@ _ACEOF
 fi
 
 
-# Since we run commands on the build system, we have to create a
-# separate config header for the build system if build != host.
-if test x$host = x$build; then
-  ac_config_commands="$ac_config_commands build-config.h"
-
-else
-  tempdir=build.$$
-  rm -rf $tempdir
-  mkdir $tempdir
-  cd $tempdir
-  case ${srcdir} in
-  /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
-  *) realsrcdir=../${srcdir};;
-  esac
-  saved_CFLAGS="${CFLAGS}"
-  # Put a plausible default for CC_FOR_BUILD in Makefile.
-  if test "x$cross_compiling" = "xno"; then
-    CC_FOR_BUILD='$(CC)'
-  else
-    CC_FOR_BUILD=gcc
-  fi
-  CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
-  LDFLAGS="${LDFLAGS_FOR_BUILD}" \
-  ${realsrcdir}/configure \
-    --enable-languages=${enable_languages-all} \
-    --target=$target_alias --host=$build_alias --build=$build_alias
-  CFLAGS="${saved_CFLAGS}"
-  mv config.h ../build-config.h
-  cd ..
-  rm -rf $tempdir
-fi
-
 
 
 
@@ -4900,7 +4868,6 @@ for ac_config_target in $ac_config_targets
 do
   case $ac_config_target in
     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
-    "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
@@ -5458,7 +5425,6 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
 
 
   case $ac_file$ac_mode in
-    "build-config.h":C) cp config.h build-config.h ;;
     "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
 
   esac
index 290cdd15b819a23168470f4a16c398808b0b5ca1..adb4fc00a01df664deb052a4fc4773fd9994ed03 100644 (file)
@@ -480,37 +480,6 @@ fi
 
 AC_CHECK_TYPES(long long)
 
-# Since we run commands on the build system, we have to create a
-# separate config header for the build system if build != host.
-if test x$host = x$build; then
-  AC_CONFIG_COMMANDS([build-config.h],[cp config.h build-config.h])
-else
-  tempdir=build.$$
-  rm -rf $tempdir
-  mkdir $tempdir
-  cd $tempdir
-  case ${srcdir} in
-  /* | [A-Za-z]:[\\/]* ) realsrcdir=${srcdir};;
-  *) realsrcdir=../${srcdir};;
-  esac
-  saved_CFLAGS="${CFLAGS}"
-  # Put a plausible default for CC_FOR_BUILD in Makefile.
-  if test "x$cross_compiling" = "xno"; then
-    CC_FOR_BUILD='$(CC)'
-  else
-    CC_FOR_BUILD=gcc
-  fi
-  CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
-  LDFLAGS="${LDFLAGS_FOR_BUILD}" \
-  ${realsrcdir}/configure \
-    --enable-languages=${enable_languages-all} \
-    --target=$target_alias --host=$build_alias --build=$build_alias
-  CFLAGS="${saved_CFLAGS}"
-  mv config.h ../build-config.h
-  cd ..
-  rm -rf $tempdir
-fi
-
 AC_SUBST(sim_line_nr)
 AC_SUBST(sim_opcode)
 AC_SUBST(sim_switch)
index f1da310b1c2467227824bf8aa71b87e18d93f8d0..c2f28ea7b89840ff780c1cba164fca538c733616 100644 (file)
@@ -20,8 +20,6 @@
 
 #include <stdio.h>
 
-#include "build-config.h"
-
 #include <string.h>
 
 #include "misc.h"
index 9f642440541e392e0b897c533d10c921f1cc946a..4de7469b4e3682f1b86d085793d2f20614b16621 100644 (file)
@@ -23,7 +23,6 @@
 #include "misc.h"
 #include "lf.h"
 #include "table.h"
-#include "build-config.h"
 
 #include "filter.h"
 
index e170a47b0902f2897d8ff5a74f2d0893b6302039..9a9d6151c6e8c6f4001f93f2851aa91ba58b755d 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdarg.h>
 #include <ctype.h>
 
-#include "build-config.h"
 #include "misc.h"
 #include "lf.h"
 
index 8f2581e3ef32b6d10713ea5a9310290b9ece859a..a281d62b0af1a4a8f2a1d5e333bf53b15b262ae6 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdarg.h>
 #include <ctype.h>
 
-#include "build-config.h"
 #include "misc.h"
 
 #include <stdlib.h>
index 08309134337d2f61e79ae6e9060ccf394616cf45..a9e97a003e5bdbed49d2cd59e1fb2e89e2f57c5e 100644 (file)
@@ -20,8 +20,6 @@
 
 /* Frustrating header junk */
 
-#include "build-config.h"
-
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
index da169675958703194b64e4e4883d01dfd14c4901..cb9a73aa8c4982c08538a16e90a1cf9db00eac0e 100644 (file)
@@ -24,7 +24,6 @@
 #include <fcntl.h>
 #include <ctype.h>
 
-#include "build-config.h"
 #include "misc.h"
 #include "lf.h"
 #include "table.h"