]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "[PATCH] x86: Drop cc-options call for all options supported in gcc 3.2+"
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 18 May 2007 03:18:11 +0000 (20:18 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 18 May 2007 03:18:11 +0000 (20:18 -0700)
commit25ac7d8c6737162bda5df6703e4d19c3ac0994e0
treec8631b9d3c07b4fd60f27e1c89863e89247d0eb7
parent48d4d2491a4faec1e880ab0838913ae57329cfd0
Revert "[PATCH] x86: Drop cc-options call for all options supported in gcc 3.2+"

This reverts commit e82a02d8cfd724a50a5353f42366f4fa5552cca9.

It turns out the kernel was correct, and the gcc complaint was a gcc
bug.  The preferred stack boundary is expressed not in bytes, but in the
the log2() of the preferred boundary, so "-mpreferred-stack-boundary=2"
is in fact exactly what we want, but a gcc that is compiled for x86-64
will consider it an error (because the 64-bit calling sequence says that
the stack should be 16-byte aligned) even if we are then using "-m32" to
generate 32-bit code.

Noted-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Cc: Jan Hubicka <jh@suse.cz>
Acked-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile
arch/i386/Makefile