public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: sh: move some generated source files to built sources
@ 2023-01-03  3:56 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-01-03  3:56 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fdbd297027e61f03192f73a4d888f91b3d0dfbbb

commit fdbd297027e61f03192f73a4d888f91b3d0dfbbb
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Jan 2 22:48:13 2023 -0500

    sim: sh: move some generated source files to built sources
    
    This should have been part of the previous commit 80636a54bcfa2bca3dc8f
    ("sim: build: move generated headers to built sources"), but they were
    missed because they're .c files effectively treated as .h files.

Diff:
---
 sim/Makefile.in | 25 ++++++++++++++-----------
 sim/sh/local.mk |  8 ++++++--
 2 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/sim/Makefile.in b/sim/Makefile.in
index 204a2c563f1..df5d396e4bc 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -261,11 +261,15 @@ TESTS = testsuite/common/bits32m0$(EXEEXT) \
 @SIM_ENABLE_ARCH_rl78_TRUE@am__append_91 = rl78/run
 @SIM_ENABLE_ARCH_rx_TRUE@am__append_92 = rx/run
 @SIM_ENABLE_ARCH_sh_TRUE@am__append_93 = sh/run
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_94 = $(sh_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_95 = sh/gencode
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_96 = $(sh_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_97 = v850/run
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_98 = \
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_94 = \
+@SIM_ENABLE_ARCH_sh_TRUE@	sh/code.c \
+@SIM_ENABLE_ARCH_sh_TRUE@	sh/ppi.c
+
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_95 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_96 = sh/gencode
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_97 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_98 = v850/run
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_99 = \
 @SIM_ENABLE_ARCH_v850_TRUE@	v850/icache.h \
 @SIM_ENABLE_ARCH_v850_TRUE@	v850/idecode.h \
 @SIM_ENABLE_ARCH_v850_TRUE@	v850/semantics.h \
@@ -274,8 +278,8 @@ TESTS = testsuite/common/bits32m0$(EXEEXT) \
 @SIM_ENABLE_ARCH_v850_TRUE@	v850/itable.h \
 @SIM_ENABLE_ARCH_v850_TRUE@	v850/engine.h
 
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_99 = $(v850_BUILD_OUTPUTS)
 @SIM_ENABLE_ARCH_v850_TRUE@am__append_100 = $(v850_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_101 = $(v850_BUILD_OUTPUTS)
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
@@ -1258,7 +1262,8 @@ noinst_LIBRARIES = common/libcommon.a $(am__append_5)
 BUILT_SOURCES = $(am__append_14) $(am__append_18) $(am__append_25) \
 	$(am__append_29) $(am__append_38) $(am__append_44) \
 	$(am__append_49) $(am__append_58) $(am__append_70) \
-	$(am__append_79) $(am__append_85) $(am__append_98)
+	$(am__append_79) $(am__append_85) $(am__append_94) \
+	$(am__append_99)
 CLEANFILES = common/version.c common/version.c-stamp \
 	testsuite/common/bits-gen testsuite/common/bits32m0.c \
 	testsuite/common/bits32m31.c testsuite/common/bits64m0.c \
@@ -1271,7 +1276,7 @@ MOSTLYCLEANFILES = core $(common_HW_CONFIG_H_TARGETS) $(patsubst \
 	$(am__append_40) $(am__append_46) $(am__append_51) \
 	$(am__append_55) $(am__append_60) $(am__append_65) \
 	$(am__append_75) $(am__append_81) $(am__append_87) \
-	$(am__append_96) $(am__append_100)
+	$(am__append_97) $(am__append_101)
 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
 AM_CPPFLAGS = $(INCGNU) -I$(srcroot)/include -I../bfd -I.. \
 	$(SIM_HW_CFLAGS) $(SIM_INLINE) -I$(srcdir)/common \
@@ -1286,7 +1291,7 @@ SIM_ALL_RECURSIVE_DEPS = common/libcommon.a \
 	$(am__append_39) $(am__append_45) $(am__append_50) \
 	$(am__append_53) $(am__append_59) $(am__append_63) \
 	$(am__append_74) $(am__append_80) $(am__append_86) \
-	$(am__append_94) $(am__append_99)
+	$(am__append_95) $(am__append_100)
 SIM_INSTALL_DATA_LOCAL_DEPS = 
 SIM_INSTALL_EXEC_LOCAL_DEPS = $(am__append_34)
 SIM_UNINSTALL_LOCAL_DEPS = $(am__append_35)
@@ -1849,8 +1854,6 @@ testsuite_common_CPPFLAGS = \
 
 @SIM_ENABLE_ARCH_sh_TRUE@sh_BUILD_OUTPUTS = \
 @SIM_ENABLE_ARCH_sh_TRUE@	sh/gencode$(EXEEXT) \
-@SIM_ENABLE_ARCH_sh_TRUE@	sh/code.c \
-@SIM_ENABLE_ARCH_sh_TRUE@	sh/ppi.c \
 @SIM_ENABLE_ARCH_sh_TRUE@	sh/table.c
 
 @SIM_ENABLE_ARCH_sh_TRUE@sh_gencode_SOURCES = sh/gencode.c
diff --git a/sim/sh/local.mk b/sim/sh/local.mk
index 2dc63323e04..8c2ce0da149 100644
--- a/sim/sh/local.mk
+++ b/sim/sh/local.mk
@@ -24,10 +24,14 @@
 
 noinst_PROGRAMS += %D%/run
 
+## List all generated headers to help Automake dependency tracking.
+## NB: These .c files are only included by other .c files.  They are not
+## compiled individually.  Hence they're really "header" files.
+BUILT_SOURCES += \
+	%D%/code.c \
+	%D%/ppi.c
 %C%_BUILD_OUTPUTS = \
 	%D%/gencode$(EXEEXT) \
-	%D%/code.c \
-	%D%/ppi.c \
 	%D%/table.c
 
 ## This makes sure build tools are available before building the arch-subdirs.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-03  3:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03  3:56 [binutils-gdb] sim: sh: move some generated source files to built sources Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).