[Bug 1727540] Re: add support for thunderx2 cores

dann frazier dann.frazier at canonical.com
Mon Jan 22 19:26:01 UTC 2018


artful verification:

ubuntu at alekhin:~$ cat > hello.c
#include <stdio.h>

int main() {
  printf("Hello world\n");
}
ubuntu at alekhin:~$ gcc-5 hello.c -o hello -mcpu=thunderx2t99
ubuntu at alekhin:~$ ./hello 
Hello world
ubuntu at alekhin:~$ gcc-5 hello.c -o hello -mcpu=vulcan
ubuntu at alekhin:~$ ./hello 
Hello world
ubuntu at alekhin:~$ gcc-5 -v
Using built-in specs.
COLLECT_GCC=gcc-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/5/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.5.0-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-arm64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-arm64 --with-arch-directory=aarch64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 5.4.1 20171010 (Ubuntu/Linaro 5.5.0-1ubuntu2)

** Tags removed: verification-needed-artful
** Tags added: verification-done-artful

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1727540

Title:
  add support for thunderx2 cores

Status in gcc-5 package in Ubuntu:
  Fix Released
Status in gcc-5 source package in Xenial:
  Fix Committed
Status in gcc-5 source package in Zesty:
  Won't Fix
Status in gcc-5 source package in Artful:
  Fix Committed
Status in gcc-5 source package in Bionic:
  Fix Released

Bug description:
  [Impact]
  gcc-5 doesn't know about thunderx2 cores, so optimization flags for this target will fail. While it is possible to generate the same code by referencing the previous name of the core (vulcan), that is non-obvious to the end user.

  [Test Case]
  gcc-5 hello.c -o hello -mcpu=thunderx2t99
  hello.c:1:0: error: unknown value ‘thunderx2t99’ for -mcpu
   #include <stdio.h>
   ^

  Also test that -mcpu=vulcan still works, to check for regressions.

  [Regression Risk]
  The patchset includes a rename of the "vulcan" core to "thunderx2t99". It retains backwards compatibility with the "vulcan" name to avoid regressing users that may already be using that name.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1727540/+subscriptions



More information about the foundations-bugs mailing list