From patchwork Wed May 12 04:28:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 1477401 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=WKeHPCrk; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fg1yX3CgHz9sWW for ; Wed, 12 May 2021 14:29:06 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A754D384403C; Wed, 12 May 2021 04:29:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A754D384403C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1620793743; bh=TFARuhOtz8icrXvRxepPwclcBvYXTbd5AuQ2y8cbNLI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=WKeHPCrk7Zo4XVMl8PAIprvj6glcEhhaWFxGZ25jF3HK9TJca607e4dLz+nafHXCd e92Mi2ojvHcL1yviAvCd5ivvYd6O9p/bA4YHvS7oXzqK60MmrCK7gluUL55QuFHmY5 LJEJBmQaOHsrf6Er3q7Z/HkEGwo+1mXI5AVJjQg4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 53DFF3857C7E for ; Wed, 12 May 2021 04:28:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 53DFF3857C7E Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F395D340CEE for ; Wed, 12 May 2021 04:28:55 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH] config: delete unused sim macros Date: Wed, 12 May 2021 00:28:54 -0400 Message-Id: <20210512042854.29596-1-vapier@gentoo.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_ASCII_DIVIDERS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Mike Frysinger via Gcc-patches From: Mike Frysinger Reply-To: Mike Frysinger Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Nothing in gcc or binutils or gdb or anything anywhere uses these. config/ * acinclude.m4 (CYG_AC_PATH_SIM, CYG_AC_PATH_DEVO): Delete. --- config/acinclude.m4 | 102 -------------------------------------------- 1 file changed, 102 deletions(-) diff --git a/config/acinclude.m4 b/config/acinclude.m4 index 8242b2c7a8ac..0abccafa0353 100644 --- a/config/acinclude.m4 +++ b/config/acinclude.m4 @@ -373,88 +373,6 @@ fi AC_SUBST(INTLLIB) ]) -dnl ==================================================================== -dnl Find the simulator library. -AC_DEFUN([CYG_AC_PATH_SIM], [ -dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.. ../../../../../../../../../.." -case "$target_cpu" in - powerpc) target_dir=ppc ;; - sparc*) target_dir=erc32 ;; - mips*) target_dir=mips ;; - *) target_dir=$target_cpu ;; -esac -dnl First look for the header file -AC_MSG_CHECKING(for the simulator header file) -AC_CACHE_VAL(ac_cv_c_simh,[ -for i in $dirlist; do - if test -f "${srcdir}/$i/include/remote-sim.h" ; then - ac_cv_c_simh=`(cd ${srcdir}/$i/include; ${PWDCMD-pwd})` - break - fi -done -]) -if test x"${ac_cv_c_simh}" != x; then - SIMHDIR="-I${ac_cv_c_simh}" - AC_MSG_RESULT(${ac_cv_c_simh}) -else - AC_MSG_RESULT(none) -fi -AC_SUBST(SIMHDIR) - -dnl See whether it's a devo or Foundry branch simulator -AC_MSG_CHECKING(Whether this is a devo simulator ) -AC_CACHE_VAL(ac_cv_c_simdevo,[ - CPPFLAGS="$CPPFLAGS $SIMHDIR" - AC_EGREP_HEADER([SIM_DESC sim_open.*struct _bfd], remote-sim.h, - ac_cv_c_simdevo=yes, - ac_cv_c_simdevo=no) -]) -if test x"$ac_cv_c_simdevo" = x"yes" ; then - AC_DEFINE(HAVE_DEVO_SIM) -fi -AC_MSG_RESULT(${ac_cv_c_simdevo}) -AC_SUBST(HAVE_DEVO_SIM) - -dnl Next look for the library -AC_MSG_CHECKING(for the simulator library) -AC_CACHE_VAL(ac_cv_c_simlib,[ -for i in $dirlist; do - if test -f "$i/sim/$target_dir/Makefile" ; then - ac_cv_c_simlib=`(cd $i/sim/$target_dir; ${PWDCMD-pwd})` - fi -done -]) -if test x"${ac_cv_c_simlib}" != x; then - SIMLIB="-L${ac_cv_c_simlib}" -else - AC_MSG_RESULT(none) - dnl FIXME: this is kinda bogus, cause umtimately the TM will build - dnl all the libraries for several architectures. But for now, this - dnl will work till then. -dnl AC_MSG_CHECKING(for the simulator installed with the compiler libraries) - dnl Transform the name of the compiler to it's cross variant, unless - dnl CXX is set. This is also what CXX gets set to in the generated - dnl Makefile. - CROSS_GCC=`echo gcc | sed -e "s/^/$target/"` - - dnl Get G++'s full path to libgcc.a -changequote(,) - gccpath=`${CROSS_GCC} --print-libgcc | sed -e 's:[a-z0-9A-Z\.\-]*/libgcc.a::' -e 's:lib/gcc-lib/::'`lib -changequote([,]) - if test -f $gccpath/libsim.a -o -f $gccpath/libsim.so ; then - ac_cv_c_simlib="$gccpath/" - SIMLIB="-L${ac_cv_c_simlib}" - AC_MSG_RESULT(${ac_cv_c_simlib}) - else - AM_CONDITIONAL(PSIM, test x$psim = xno) - SIMLIB="" - AC_MSG_RESULT(none) -dnl ac_cv_c_simlib=none - fi -fi -AC_SUBST(SIMLIB) -]) - dnl ==================================================================== dnl Find the libiberty library. AC_DEFUN([CYG_AC_PATH_LIBIBERTY], [ @@ -476,26 +394,6 @@ fi AC_SUBST(LIBIBERTY) ]) -dnl ==================================================================== -AC_DEFUN([CYG_AC_PATH_DEVO], [ -AC_MSG_CHECKING(for devo headers in the source tree) -dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." -AC_CACHE_VAL(ac_cv_c_devoh,[ -for i in $dirlist; do - if test -f "${srcdir}/$i/include/remote-sim.h" ; then - ac_cv_c_devoh=`(cd ${srcdir}/$i/include; ${PWDCMD-pwd})` - fi -done -]) -if test x"${ac_cv_c_devoh}" != x; then - DEVOHDIR="-I${ac_cv_c_devoh}" - AC_MSG_RESULT(${ac_cv_c_devoh}) -else - AC_MSG_RESULT(none) -fi -AC_SUBST(DEVOHDIR) -]) - dnl ==================================================================== dnl Find all the ILU headers and libraries AC_DEFUN([CYG_AC_PATH_ILU], [