lkml.org 
[lkml]   [2012]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] kbuild: Fix gcc -x syntax

* Jean Delvare <jdelvare@suse.de> wrote:

> 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 Richard Guenther 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>
> Cc: stable@vger.kernel.org
> Cc: Bernhard Walle <bernhard@bwalle.de>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> ---
> Changes since v1:
> * Found more occurrences of the same. These are probably less
> problematic in practice but let's fix them all still.
>
> arch/mips/Makefile | 2 +-
> arch/mips/kernel/Makefile | 2 +-
> arch/x86/Makefile | 2 +-
> scripts/Kbuild.include | 12 ++++++------
> scripts/gcc-version.sh | 6 +++---
> scripts/gcc-x86_32-has-stack-protector.sh | 2 +-
> scripts/gcc-x86_64-has-stack-protector.sh | 2 +-
> scripts/kconfig/check.sh | 2 +-
> scripts/kconfig/lxdialog/check-lxdialog.sh | 2 +-
> tools/perf/Makefile | 2 +-
> tools/power/cpupower/Makefile | 2 +-
> 11 files changed, 18 insertions(+), 18 deletions(-)

Acked-by: Ingo Molnar <mingo@kernel.org>

Michal, want to pick this one up into the kbuild tree?

Thanks,

Ingo


\
 
 \ /
  Last update: 2012-10-01 09:41    [W:4.855 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site