aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aarch64
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2025-01-23 19:07:09 +0000
committerAndrew Carlotti <andrew.carlotti@arm.com>2025-01-24 19:09:09 +0000
commitc6ef35b4c3c092bf5e0171827ed918d4249575ca (patch)
tree39cd16135c743bd63edd6103a78c2be3a977a805 /gcc/config/aarch64
parent15e07e14372cfeb53cbdfb7cf96a8a49e402da68 (diff)
downloadgcc-c6ef35b4c3c092bf5e0171827ed918d4249575ca.zip
gcc-c6ef35b4c3c092bf5e0171827ed918d4249575ca.tar.gz
gcc-c6ef35b4c3c092bf5e0171827ed918d4249575ca.tar.bz2
aarch64: Refactor aarch64_rewrite_mcpu
Use aarch64_validate_cpu instead of the existing duplicate (and worse) version of the -mcpu parsing code. The original code used fatal_error; I'm guessing that using error instead should be ok. gcc/ChangeLog: * common/config/aarch64/aarch64-common.cc (aarch64_rewrite_selected_cpu): Refactor and inline into... (aarch64_rewrite_mcpu): this. * config/aarch64/aarch64-protos.h (aarch64_rewrite_selected_cpu): Delete.
Diffstat (limited to 'gcc/config/aarch64')
-rw-r--r--gcc/config/aarch64/aarch64-protos.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h
index b27da1e..4235f4a 100644
--- a/gcc/config/aarch64/aarch64-protos.h
+++ b/gcc/config/aarch64/aarch64-protos.h
@@ -1210,7 +1210,6 @@ bool aarch64_validate_march (const char *, aarch64_arch *,
bool aarch64_validate_mcpu (const char *, aarch64_cpu *,
aarch64_feature_flags *);
bool aarch64_validate_mtune (const char *, aarch64_cpu *);
-const char *aarch64_rewrite_selected_cpu (const char *name);
std::string aarch64_get_extension_string_for_isa_flags (aarch64_feature_flags,
aarch64_feature_flags);
std::string aarch64_get_arch_string_for_assembler (aarch64_arch,