summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-29 14:31:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2012-06-23 19:25:22 -0700
commitd9b0cde91c60da0ed5f92cdc3ac878142e6b5f27 (patch)
tree4b90bee8a829aa5ec07118626247c12138c0c434 /drivers/gpu/drm/amd/display/dc
parent485802a6c524e62b5924849dd727ddbb1497cc71 (diff)
x86-64, gcc: Use -mpreferred-stack-boundary=3 if supported
On x86-64, the standard ABI requires alignment to 16 bytes. However, this is not actually necessary in the kernel (we don't do SSE except in very controlled ways); and furthermore, the standard kernel entry on x86-64 actually leaves the stack on an odd 8-byte boundary, which means that gcc will generate extra instructions to keep the stack *mis*aligned! gcc 4.8 adds an -mpreferred-stack-boundary=3 option to override this and lets us save some stack space and a handful of instructions. Note that this causes us to pass -mno-sse twice; this is redundant, but necessary since the cc-option test will fail unless -mno-sse is passed on the same command line. [ hpa: rewrote the patch description ] Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Link: http://lkml.kernel.org/r/CAMe9rOqPfy3JcZRLaUeCjBe9BVY-P6e0uaSbMi5hvS-6WwQueg@mail.gmail.com Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc')
0 files changed, 0 insertions, 0 deletions