mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
b1e0d8b70f
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 <jdelvare@suse.de> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: stable@vger.kernel.org Cc: Bernhard Walle <bernhard@bwalle.de> Cc: Michal Marek <mmarek@suse.cz> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
15 lines
215 B
Bash
Executable File
15 lines
215 B
Bash
Executable File
#!/bin/sh
|
|
# Needed for systems without gettext
|
|
$* -x c -o /dev/null - > /dev/null 2>&1 << EOF
|
|
#include <libintl.h>
|
|
int main()
|
|
{
|
|
gettext("");
|
|
return 0;
|
|
}
|
|
EOF
|
|
if [ ! "$?" -eq "0" ]; then
|
|
echo -DKBUILD_NO_NLS;
|
|
fi
|
|
|