]> git.ipfire.org Git - thirdparty/gcc.git/commit
[arm] Move some generated files out of the source tree
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 4 Jul 2017 14:49:38 +0000 (14:49 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 4 Jul 2017 14:49:38 +0000 (14:49 +0000)
commit5006165236a38c35040a76e676a7ba134e71aa67
treeef2eafd4c6b6340d98e484b4de578bf34fc72b1f
parent1d79dcb813b30ba64c111c2157e06deeac5fb691
[arm] Move some generated files out of the source tree

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 (files_and_dependencies): 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.

From-SVN: r249971
ChangeLog
contrib/gcc_update
gcc/ChangeLog
gcc/common/config/arm/arm-common.c
gcc/config/arm/arm-cpu-cdata.h [deleted file]
gcc/config/arm/arm-cpu-data.h [deleted file]
gcc/config/arm/arm-cpu.h [deleted file]
gcc/config/arm/t-arm