From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ph0KKJsfg2F+WQAAWB0awg (envelope-from ) for ; Wed, 03 Nov 2021 19:47:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 940581F0C1; Wed, 3 Nov 2021 19:47:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 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 (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6DE0C1EDDB for ; Wed, 3 Nov 2021 19:47:35 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9E187385801F for ; Wed, 3 Nov 2021 23:47:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E187385801F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635983254; bh=nOyJ4GJlXExXg9ueTDD1KU1NA7KtmczlWtH3Uii1NP0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=irp5XpkiJVQyJzKmHsM30LmTR8gYsG2O6ii+UL9DGHNfjWYPVdoJjwuxYEekEfY9H kb479DLrngTcwOITOljI+CIJTfFc2o2dIj0THDXIf7Kh1MNs8FK4DuwI9k9cokvpGt URHIhIoMr6o586l0R5qsgxyTKI3/QuiDa6wBRxAw= Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id D34983858D39 for ; Wed, 3 Nov 2021 23:47:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D34983858D39 Received: by smtp.gentoo.org (Postfix, from userid 559) id C6776342DBB; Wed, 3 Nov 2021 23:47:11 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 1/2] sim: ppc: switch to common builds for callback objects Date: Wed, 3 Nov 2021 19:47:06 -0400 Message-Id: <20211103234707.5692-1-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" We don't need to build this anymore ourselves since the common build includes it and produces the same object code. We also need to pull in the split constant modules after the refactoring and pulling them out of nltvals.def & targ-map.o. This doesn't matter for the sim directly, but does for gdb and other users of libsim. We also delete some conditional source tree logic since we already require this be the "new" combined tree with a ../common/ dir. This has been the case for decades at this point. --- sim/ppc/Makefile.in | 11 ++++++----- sim/ppc/configure | 18 ------------------ sim/ppc/configure.ac | 14 -------------- 3 files changed, 6 insertions(+), 37 deletions(-) diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 8f4cd997d303..2f8fe9b20b0e 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -430,7 +430,7 @@ BUILT_SRC_WO_CONFIG = \ pk.h \ hw.h hw.c \ filter_host.c \ - @sim_targ_vals@ + targ-vals.h targ-map.c targ-vals.def BUILT_SRC = \ $(BUILT_SRC_WO_CONFIG) \ @@ -469,6 +469,10 @@ MAIN_SRC = \ sim_calls.c COMMON_OBJS_NAMES = \ + callback.o \ + target-newlib-errno.o \ + target-newlib-open.o \ + target-newlib-signal.o \ version.o COMMON_OBJS = $(COMMON_OBJS_NAMES:%=../common/common_libcommon_a-%) @@ -511,7 +515,7 @@ LIB_OBJ = \ options.o -GDB_OBJ = gdb-sim.o sim_calls.o @sim_callback@ +GDB_OBJ = gdb-sim.o sim_calls.o targ-map.o HW_SRC = @sim_hw_src@ HW_OBJ = @sim_hw_obj@ @@ -616,9 +620,6 @@ stamp-map: Makefile gentmap $(srcroot)/move-if-change $(SILENCE) $(SHELL) $(srcroot)/move-if-change tmp-map.c targ-map.c $(SILENCE) touch $@ -callback.o: $(srcdir)/../common/callback.c $(TARG_VALS_H) $(CONFIG_H) - $(ECHO_CC) $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/callback.c - targ-map.o: targ-map.c $(ANSIDECL_H) $(GDB_CALLBACK_H) $(TARG_VALS_H) sim-fpu.o: $(srcdir)/../common/sim-fpu.c $(CONFIG_H) diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index b837c5b8609e..8d5d78ce1dcd 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -545,18 +545,6 @@ else sim_devzero="" fi -dnl Figure out if we are in the new Cygnus tree with a common directory or not -AC_MSG_CHECKING(for common simulator directory) -if test -f "${srcdir}/../common/callback.c"; then - AC_MSG_RESULT(yes) - sim_callback="callback.o targ-map.o" - sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" -else - AC_MSG_RESULT(no) - sim_callback="" - sim_targ_vals="" -fi - AC_MSG_CHECKING(for common simulator directory fpu implementation) if test -f "${srcdir}/../common/sim-fpu.c"; then AC_MSG_RESULT(yes) @@ -624,8 +612,6 @@ AC_SUBST(sim_default_model) AC_SUBST(sim_model_issue) AC_SUBST(sim_termio) AC_SUBST(sim_devzero) -AC_SUBST(sim_callback) -AC_SUBST(sim_targ_vals) AC_SUBST(sim_fpu_cflags) AC_SUBST(sim_fpu) -- 2.33.0