path: root/scripts/
diff options
authorJean Delvare <>2012-10-02 16:42:36 +0200
committerMichal Marek <>2012-10-03 09:03:24 +0200
commitb1e0d8b70fa31821ebca3965f2ef8619d7c5e316 (patch)
tree4df17a3e10de030701ccf0868da1a94c1063b07d /scripts/
parentfe04ddf7c2910362f3817c8156e41cbd6c0ee35d (diff)
kbuild: Fix gcc -x syntax
The correct syntax for gcc -x is "gcc -x assembler", not "gcc -xassembler". Even though the latter happens to work, the former is what is documented in the manual page and thus what gcc wrappers such as icecream do expect. This isn't a cosmetic change. The missing space prevents icecream from recognizing compilation tasks it can't handle, leading to silent kernel miscompilations. Besides me, credits go to Michael Matz and Dirk Mueller for investigating the miscompilation issue and tracking it down to this incorrect -x parameter syntax. Signed-off-by: Jean Delvare <> Acked-by: Ingo Molnar <> Cc: Cc: Bernhard Walle <> Cc: Michal Marek <> Cc: Ralf Baechle <> Signed-off-by: Michal Marek <>
Diffstat (limited to 'scripts/')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ b/scripts/
index 29493dc4528d..12dbd0b11ea4 100644
--- a/scripts/
+++ b/scripts/
@@ -1,6 +1,6 @@
-echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
+echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
echo y