[PATCH][arm] Move some generated files out of the source tree

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Tue Jul 4 14:52:00 GMT 2017


When I originally started work on the new options framework for ARM I'd
worked on the assumption that AWK might not be available on every build
machine (only on developer's machines).  However, looking again I notice
that all the options framework relies on it being present for every
build.  This means that some of the generated files that come from
running parsecpu.awk do not need to be kept under revision control.

Unfortunately, it's not _all_ generated files.  The build infrastructure
assumes that all .md fragments are in the source tree and similarly that
all .opt fragments are there as well.

Still, eliminating the very big .h files is a step forward as they are
very regular in structure and diff/patch/merge tools can sometimes make
mistakes when resolving conflicts.

So this patch removes the generated .h files from the source tree and
tweaks the make rules accordingly.  I've also changed the build rules to
use the stamp technique to eliminate some false dependencies in a rebuild.

Top-level:

	* contrib/gcc_update: Remove stamp rules for arm-specific
	auto-generated header files.

gcc:
	* common/config/arm/arm-common.c: Adjust include path for
	arm-cpu-cdata.h
	* t-arm (TM_H): Adjust path for arm-cpu.h.
	(arm-cpu.h): Create in build directory.  Adjust dependency rules.
	(arm-cpu-data.h): Likewise.
	(arm-cpu-cdata.h): Likewise.
	* config/arm/arm-cpu.h: Delete.
	* config/arm/arm-cpu-cdata.h: Delete.
	* config/arm/arm-cpu-data.h: Delete.

Applied to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nobuild-in-tree.patch
Type: text/x-patch
Size: 67804 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170704/59c7ad66/attachment.bin>


More information about the Gcc-patches mailing list