]> git.ipfire.org Git - thirdparty/gcc.git/commit - contrib/ChangeLog
[arm] Replace command-line option .def files with single definition file
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jan 2017 14:39:00 +0000 (14:39 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jan 2017 14:39:00 +0000 (14:39 +0000)
commitc1cb3428363ff4e518e787fcd1a908c0da00c6ee
tree5bbd0872a85c391ee212c559fe8febfa9e2fbc81
parent945b86ebdbec6a49413719fbc7e2a9675f582087
[arm] Replace command-line option .def files with single definition file

The files arm-cores.def, arm-fpus.def and arm-arches.def are parsed and
used in several places and the format is slightly awkward to maintain
as they must be parsable in C and by certain scripts.  Furthermore,
changes to the content that affects every entry is particularly awkward for
dealing with merges.

This patch replaces all three files with a single file that specifies all
the command-line related definitions in a new format that allows for better
checking for consistency as well as (hopefully) easier to merge changes.

The awk script used to parse it is relatively complicated, but should be
pretty portable.  It works by parsing in all the data and then operating
one of a number of possible sub-commands to generate the desired output.

The new method picked up one error.  The CPU descriptions referred to an
architecture ARMv5tej which was not supported by -march.  This has been
fixed by adding the relevant entry to the architecture list.

gcc:
* config.gcc: Use new awk script to check CPU, FPU and architecture
parameters for --with-... options.
* config/arm/parsecpu.awk: New file
* config/arm/arm-cpus.in: New file.
* config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
files.
* config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
files.
* config/arm/t-arm: Update dependency rules.
* common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
of processing .def files.
* config/arm/genopt.sh: Deleted.
* config/arm/gentune.sh: Deleted.
* config/arm/arm-cores.def: Deleted.
* config/arm/arm-arches.def: Deleted.
* config/arm/arm-fpus.def: Deleted.
* config/arm/arm-tune.md: Regenerated.
* config/arm/arm-tables.opt: Regenerated.
* config/arm/arm-cpu.h: New generated file.
* config/arm/arm-cpu-data.h: New generated file.
* config/arm/arm-cpu-cdata.h: New generated file.

Contrib:
* gcc_update: Adjust touch list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244316 138bc75d-0d04-0410-961f-82ee72b054a4
20 files changed:
contrib/ChangeLog
contrib/gcc_update
gcc/ChangeLog
gcc/common/config/arm/arm-common.c
gcc/config.gcc
gcc/config/arm/arm-arches.def [deleted file]
gcc/config/arm/arm-cores.def [deleted file]
gcc/config/arm/arm-cpu-cdata.h [new file with mode: 0644]
gcc/config/arm/arm-cpu-data.h [new file with mode: 0644]
gcc/config/arm/arm-cpu.h [new file with mode: 0644]
gcc/config/arm/arm-cpus.in [new file with mode: 0644]
gcc/config/arm/arm-fpus.def [deleted file]
gcc/config/arm/arm-opts.h
gcc/config/arm/arm-tables.opt
gcc/config/arm/arm-tune.md
gcc/config/arm/arm.c
gcc/config/arm/genopt.sh [deleted file]
gcc/config/arm/gentune.sh [deleted file]
gcc/config/arm/parsecpu.awk [new file with mode: 0644]
gcc/config/arm/t-arm