autoconf-archive-maintainers | |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #10500] gcc >=12 no longer supports -mpower10
From: |
Tim Haines |
Subject: |
[patch #10500] gcc >=12 no longer supports -mpower10 |
Date: |
Mon, 3 Feb 2025 09:14:49 -0500 (EST) |
URL:
<https://savannah.gnu.org/patch/?10500>
Summary: gcc >=12 no longer supports -mpower10
Group: GNU Autoconf Archive
Submitter: thaines
Submitted: Mon 03 Feb 2025 02:14:43 PM UTC
Priority: 6
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 03 Feb 2025 02:14:43 PM UTC By: Tim Haines <thaines>
Support for -mpower10 was removed from gcc by
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4e577910050d in 2020.
My proposed fix is below, but I don't like it because
1) the clang check is redundant with the check below in AX_CHECK_COMPILE_FLAG
2) It doesn't check the version of gcc
Suggestions are very welcome.
diff --git a/m4/ax_gcc_archflag.m4 b/m4/ax_gcc_archflag.m4
index c52b9b2..fb3c2b5 100644
--- a/m4/ax_gcc_archflag.m4
+++ b/m4/ax_gcc_archflag.m4
@@ -240,7 +240,14 @@ if test "x[]m4_default([$1],yes)" = xyes; then # if we
require portable code
# x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu=
-m";; esac
else
- flag_prefixes="-march= -mcpu= -m"
+ if "x$ax_gcc_arch" = xpower10; then
+ if test "x$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" != xclang; then
+ # gcc 12.0 dropped support for -mpower10
+ flag_prefixes="-mcpu="
+ fi
+ else
+ flag_prefixes="-march= -mcpu= -m"
+ fi
fi
for flag_prefix in $flag_prefixes; do
for arch in $ax_gcc_arch; do
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10500>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch #10500] gcc >=12 no longer supports -mpower10,
Tim Haines <=