[compiler-rt] [compiler-rt] fix gcc <13 support by removing enum-type-specifier (PR #165034)
Yuxuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 24 12:49:46 PDT 2025
https://github.com/yuxuanchen1997 created https://github.com/llvm/llvm-project/pull/165034
This `unsigned int` here is a new addition introduced in https://github.com/llvm/llvm-project/pull/164713 and doesn't compile under older (<13) gcc, which LLVM officially supports from 7.4+.
>From 1eb339d9ef84bccc02126362b1de067c5b793c07 Mon Sep 17 00:00:00 2001
From: Yuxuan Chen <i at yuxuan.ch>
Date: Fri, 24 Oct 2025 12:48:21 -0700
Subject: [PATCH] [compiler-rt] fix gcc <13 support by removing
enum-type-specifier
---
compiler-rt/lib/builtins/cpu_model/x86.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-rt/lib/builtins/cpu_model/x86.c b/compiler-rt/lib/builtins/cpu_model/x86.c
index d9ff116cdc292..06c0c2c899eae 100644
--- a/compiler-rt/lib/builtins/cpu_model/x86.c
+++ b/compiler-rt/lib/builtins/cpu_model/x86.c
@@ -36,14 +36,14 @@ enum VendorSignatures {
SIG_AMD = 0x68747541, // Auth
};
-enum ProcessorVendors : unsigned int {
+enum ProcessorVendors {
VENDOR_INTEL = 1,
VENDOR_AMD,
VENDOR_OTHER,
VENDOR_MAX
};
-enum ProcessorTypes : unsigned int {
+enum ProcessorTypes {
INTEL_BONNELL = 1,
INTEL_CORE2,
INTEL_COREI7,
More information about the llvm-commits
mailing list