aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-08-19 14:08:16 +0000
committerLinus Torvalds <[email protected]>2020-08-19 18:23:45 +0000
commit33d0f96ffd7394ffb208bb366be312d12dfd24a4 (patch)
tree786d9469c3f97b255001d323964ad23b83118728 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentx86/boot/compressed: Use builtin mem functions for decompressor (diff)
downloadkernel-33d0f96ffd7394ffb208bb366be312d12dfd24a4.tar.gz
kernel-33d0f96ffd7394ffb208bb366be312d12dfd24a4.zip
lib/string.c: Use freestanding environment
gcc can transform the loop in a naive implementation of memset/memcpy etc into a call to the function itself. This optimization is enabled by -ftree-loop-distribute-patterns. This has been the case for a while, but gcc-10.x enables this option at -O2 rather than -O3 as in previous versions. Add -ffreestanding, which implicitly disables this optimization with gcc. It is unclear whether clang performs such optimizations, but hopefully it will also not do so in a freestanding environment. Signed-off-by: Arvind Sankar <[email protected]> Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions