]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: config: microblaze: fix cpu version check
authorNeal Frager <neal.frager@amd.com>
Mon, 30 Oct 2023 17:02:53 +0000 (17:02 +0000)
committerMichael J. Eager <eager@eagercon.com>
Tue, 31 Oct 2023 16:29:10 +0000 (09:29 -0700)
commitf694960924e6420086c8ae5809995f7d43a06b5f
tree04c81ea0b9fb76a88659acfbc2b3824e60611be6
parent9119b008b4195e06012a485ec01a8bb0e43266be
gcc: config: microblaze: fix cpu version check

The MICROBLAZE_VERSION_COMPARE was incorrectly using strcasecmp
instead of strverscmp to check the mcpu version against feature
options.  By simply changing the define to use strverscmp,
the new version 10.0 is treated correctly as a higher version
than previous versions.

Fix incorrect warning with -mcpu=10.0:
  warning: '-mxl-multiply-high' can be used only with
  '-mcpu=v6.00.a' or greater

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Michael J. Eager <eager@eagercon.com>
gcc/ChangeLog
gcc/testsuite/ChangeLog