]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Renamed `WIN64` to `WIN_64`
authorKushal Pal <kushalpal109@gmail.com>
Sat, 9 Dec 2023 06:34:01 +0000 (12:04 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:49 +0000 (12:36 +0100)
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>
gcc/rust/backend/rust-compile-base.cc
gcc/rust/util/rust-abi.cc
gcc/rust/util/rust-abi.h

index fcab75bef1c7e241a487ec17cf4e19c810fac311..984492f6607c2f4c08254bb8395a333a875253e0 100644 (file)
@@ -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;
index 05739e16660b1aeeca50510c69321237f22c1194..d17402e163e6b51a5d945420f97c1abc78b5cfaf 100644 (file)
@@ -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:
index d794cc35fb3a4d1051c112ab19999659af654bc7..a0180ed4d951b5a9d7134028911e52b9eb468ab5 100644 (file)
@@ -30,7 +30,7 @@ enum ABI
   CDECL,
   STDCALL,
   FASTCALL,
-  WIN64,
+  WIN_64,
   SYSV64
 };