Sv. Lockal a026c9c2fc sys-devel/clang-common: add -Xarch_host to fix GPU compilation
Add -Xarch_host to CPU-specific flags, so that it does not affects
heterogenous code (e. g. HIP).

For stack-protector flags: fixes compiler crashes like
https://github.com/llvm/llvm-project/issues/83777.  Clang 18.1.0 does
not try to apply these flags to GPU code, but current ROCm libraries use
Clang 17, so add "-Xarch_host" there too.  This will allow to drop
"-fno-stack-protector" patches from rocm-comgr, hip and hipcc
eventually.

For -fcf-protection: fixes error: option 'cf-protection=return' cannot
be specified on this target.

For -fPIE: do not touch, as at least since Clang 15 it only affects host
relocation model.  See also:
https://github.com/llvm/llvm-project/blob/llvmorg-15.0.7/clang/test/Driver/hip-fpie-option.hip

Bug: https://github.com/llvm/llvm-project/issues/86450
Closes: https://bugs.gentoo.org/927752
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35926
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-03-26 14:36:40 +01:00
2024-03-24 22:17:32 +09:00
2024-03-25 14:09:12 +01:00
2024-03-24 22:45:01 +02:00
2024-03-24 19:13:00 -07:00
2024-03-25 11:24:36 +00:00
2024-03-25 03:27:20 +01:00
2024-03-16 00:58:55 +01:00
2024-03-26 03:08:32 -04:00
2024-03-17 23:36:28 +02:00
2024-03-25 15:45:50 +01:00
2024-03-22 17:22:42 +01:00
2024-03-18 21:00:02 +01:00
2024-03-24 16:24:35 +00:00
2024-03-21 16:35:45 +01:00
2024-03-23 08:28:58 +00:00
2024-03-17 07:46:25 +01:00
2024-03-25 19:45:00 +01:00
2024-03-26 12:27:25 +00:00
2024-03-25 10:35:08 +00:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.3%
Emacs Lisp 0.2%
C 0.1%