aarch64-cores.def: Rewrite so IMP and PART are integer constants.
authorAndrew Pinski <apinski@cavium.com>
Sat, 22 Oct 2016 03:40:06 +0000 (03:40 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 22 Oct 2016 03:40:06 +0000 (20:40 -0700)
commit2e721daadf386fce372229a407784ec21cf80e8a
tree35b06b312f814df36b0cb218e18207eed589fbfd
parente1454b8c6023095f9fc1d8dfe91d99b0f21e41b4
aarch64-cores.def: Rewrite so IMP and PART are integer constants.

2016-10-21  Andrew Pinski  <apinski@cavium.com>

        * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
        integer constants.
        * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
        implementer_id to unsigned char.
        Change part_no to unsigned int.
        (AARCH64_BIG_LITTLE): New define.
        (INVALID_IMP): New define.
        (INVALID_CORE): New define.
        (cpu_data): Change the last element's implementer_id and part_no to
        integers.
        (valid_bL_string_p): Rewrite to ..
        (valid_bL_core_p): this for integers instead of strings.
        (parse_field): New function.
        (contains_string_p): Rewrite to ...
        (contains_core_p): this for integers and only for the part_no.
        (host_detect_local_cpu): Rewrite handling of implementation and
        par num to be integers; simplifying the code.

From-SVN: r241437
gcc/ChangeLog
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/driver-aarch64.c