From patchwork Mon Jan 1 21:28:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 83080 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 54F2F3858435 for ; Mon, 1 Jan 2024 21:29:23 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 335973858C2F for ; Mon, 1 Jan 2024 21:28:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 335973858C2F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 335973858C2F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704144526; cv=none; b=Z3sSS7SFad/EX8IpWHAsCorfbqJIoMLRcdo/5Py2pyWw+6QfOWtTOXzb1tvAB2tO92ghSfplCoJLWI4aXl/1Hkg5zwOz6QmBzLxZ8mImPkEXumkfxIUpzWo8yGdqWqLaEy702HOW3+0JtGllqy0/7qYvMfqaIenNNLRv6ms61EQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704144526; c=relaxed/simple; bh=uUqpfPLAhIpyHK5dLQ8hIbcbFZ8hsDeu6xB6StlukzY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=xcyFSYZjlkz+lZgRu21OEZiKRb4nS19CSF+ZCOPiUZYckrkVgCqxLHE0ZCgJJ6BCrTrc++e17mHOJjZfNC0024eBKduQrNuR2J0luB2OYtk9nmVeAk5khoHxEx7T3kDK2XAhePqRhJqTjH/AOHxpIF6fW01wef+/JBfD0rxKqtU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id C3C6733FE7D; Mon, 1 Jan 2024 21:28:43 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed] sim: ppc: drop build-config.h usage Date: Mon, 1 Jan 2024 16:28:41 -0500 Message-ID: <20240101212841.9239-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org 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 | 34 ---------------------------------- sim/ppc/configure.ac | 31 ------------------------------- sim/ppc/filter.c | 2 -- sim/ppc/igen.c | 1 - sim/ppc/lf.c | 1 - sim/ppc/misc.c | 1 - sim/ppc/misc.h | 2 -- sim/ppc/table.c | 1 - 8 files changed, 73 deletions(-) diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 290cdd15b819..adb4fc00a01d 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -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) diff --git a/sim/ppc/filter.c b/sim/ppc/filter.c index f1da310b1c24..c2f28ea7b898 100644 --- a/sim/ppc/filter.c +++ b/sim/ppc/filter.c @@ -20,8 +20,6 @@ #include -#include "build-config.h" - #include #include "misc.h" diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c index 9f642440541e..4de7469b4e36 100644 --- a/sim/ppc/igen.c +++ b/sim/ppc/igen.c @@ -23,7 +23,6 @@ #include "misc.h" #include "lf.h" #include "table.h" -#include "build-config.h" #include "filter.h" diff --git a/sim/ppc/lf.c b/sim/ppc/lf.c index e170a47b0902..9a9d6151c6e8 100644 --- a/sim/ppc/lf.c +++ b/sim/ppc/lf.c @@ -22,7 +22,6 @@ #include #include -#include "build-config.h" #include "misc.h" #include "lf.h" diff --git a/sim/ppc/misc.c b/sim/ppc/misc.c index 8f2581e3ef32..a281d62b0af1 100644 --- a/sim/ppc/misc.c +++ b/sim/ppc/misc.c @@ -22,7 +22,6 @@ #include #include -#include "build-config.h" #include "misc.h" #include diff --git a/sim/ppc/misc.h b/sim/ppc/misc.h index 08309134337d..a9e97a003e5b 100644 --- a/sim/ppc/misc.h +++ b/sim/ppc/misc.h @@ -20,8 +20,6 @@ /* Frustrating header junk */ -#include "build-config.h" - #include #include #include diff --git a/sim/ppc/table.c b/sim/ppc/table.c index da1696759587..cb9a73aa8c49 100644 --- a/sim/ppc/table.c +++ b/sim/ppc/table.c @@ -24,7 +24,6 @@ #include #include -#include "build-config.h" #include "misc.h" #include "lf.h" #include "table.h"