aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2023-12-09 12:04:01 +0530
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-30 12:36:49 +0100
commitd7b2d6704f3350917b16f454163927e4c823802b (patch)
treee0e2d08fa1433d1cb0a4bed2e963628f530e1b9e
parentf48f9a9ac6f20ffe2775437e3b21ed0208a9cee2 (diff)
downloadgcc-d7b2d6704f3350917b16f454163927e4c823802b.zip
gcc-d7b2d6704f3350917b16f454163927e4c823802b.tar.gz
gcc-d7b2d6704f3350917b16f454163927e4c823802b.tar.bz2
gccrs: Renamed `WIN64` to `WIN_64`
Fixes issue #2768 gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::setup_abi_options): Renamed `WIN64` to `WIN_64` * util/rust-abi.cc (get_abi_from_string): Likewise (get_string_from_abi): Likewise * util/rust-abi.h (enum ABI): Likewise Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
-rw-r--r--gcc/rust/backend/rust-compile-base.cc2
-rw-r--r--gcc/rust/util/rust-abi.cc4
-rw-r--r--gcc/rust/util/rust-abi.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc
index fcab75b..984492f 100644
--- a/gcc/rust/backend/rust-compile-base.cc
+++ b/gcc/rust/backend/rust-compile-base.cc
@@ -463,7 +463,7 @@ HIRCompileBase::setup_abi_options (tree fndecl, ABI abi)
break;
- case Rust::ABI::WIN64:
+ case Rust::ABI::WIN_64:
abi_tree = get_identifier ("ms_abi");
break;
diff --git a/gcc/rust/util/rust-abi.cc b/gcc/rust/util/rust-abi.cc
index 05739e1..d17402e 100644
--- a/gcc/rust/util/rust-abi.cc
+++ b/gcc/rust/util/rust-abi.cc
@@ -40,7 +40,7 @@ get_abi_from_string (const std::string &abi)
else if (abi.compare ("sysv64") == 0)
return Rust::ABI::SYSV64;
else if (abi.compare ("win64") == 0)
- return Rust::ABI::WIN64;
+ return Rust::ABI::WIN_64;
return Rust::ABI::UNKNOWN;
}
@@ -64,7 +64,7 @@ get_string_from_abi (Rust::ABI abi)
return "fastcall";
case Rust::ABI::SYSV64:
return "sysv64";
- case Rust::ABI::WIN64:
+ case Rust::ABI::WIN_64:
return "win64";
case Rust::ABI::UNKNOWN:
diff --git a/gcc/rust/util/rust-abi.h b/gcc/rust/util/rust-abi.h
index d794cc3..a0180ed 100644
--- a/gcc/rust/util/rust-abi.h
+++ b/gcc/rust/util/rust-abi.h
@@ -30,7 +30,7 @@ enum ABI
CDECL,
STDCALL,
FASTCALL,
- WIN64,
+ WIN_64,
SYSV64
};