Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMDGPU] Include <cstdint> in AMDGPUMCTargetDesc #101766

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

thesamesam
Copy link
Member

createAMDGPUELFObjectWriter uses uint8_t without including <cstdint> which fails to build w/ GCC 15 after a change in libstdc++ [0].

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2

createAMDGPUELFObjectWriter uses `uint8_t` without including `<cstdint>`
which fails to build w/ GCC 15 after a change in libstdc++ [0].

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
@llvmbot
Copy link
Member

llvmbot commented Aug 2, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Sam James (thesamesam)

Changes

createAMDGPUELFObjectWriter uses uint8_t without including &lt;cstdint&gt; which fails to build w/ GCC 15 after a change in libstdc++ [0].

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2


Full diff: https://github.com/llvm/llvm-project/pull/101766.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h (+1)
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
index 3ef00f75735b0..879dbe1b279b1 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
@@ -15,6 +15,7 @@
 #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H
 #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H
 
+#include <cstdint>
 #include <memory>
 
 namespace llvm {

@arsenm arsenm merged commit 8f39502 into llvm:main Aug 3, 2024
9 checks passed
@thesamesam thesamesam deleted the gcc-15-cstdint branch August 3, 2024 06:00
@thesamesam thesamesam added this to the LLVM 19.X Release milestone Aug 3, 2024
@thesamesam
Copy link
Member Author

/cherry-pick 8f39502

llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 3, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 3, 2024

/pull-request #101796

tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 4, 2024
banach-space pushed a commit to banach-space/llvm-project that referenced this pull request Aug 7, 2024
kstoimenov pushed a commit to kstoimenov/llvm-project that referenced this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants