https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83207

            Bug ID: 83207
           Summary: On ARM -mcpu=native does not detect ARM big/little cpu
                    combinations correctly
                    (armv7l-unknown-linux-gnueabihf)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrewm.roberts at sky dot com
  Target Milestone: ---

On ARM autodetection of the CPU using -mcpu=native does not give the expected
results on ARM big/little combinations.

/usr/local/gcc/bin/gcc -mcpu=native -Q --help=target | grep mcpu
  -mcpu=                                cortex-a7

So it didn't pick:
  cortex-a15.cortex-a7

Tested on Hardkernel Odroid XU4
CPU Model:
        4 x Cortex-A15 rev 3 (0x4100c0f0)
        4 x Cortex-A7 rev 3 (0x4100c070)

/usr/local/gcc/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-8.0.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/8.0.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: ../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0
--program-suffix= --disable-werror --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin
--enable-gnu-indirect-function --enable-lto --with-isl
--enable-languages=c,c++,fortran,lto --disable-libgcj --enable-clocale=gnu
--disable-libstdcxx-pch --enable-install-libiberty --disable-multilib
--disable-libssp --enable-default-pie --enable-default-ssp
--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf
--with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171126 (experimental) (GCC)

Reply via email to