Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1428423 > unrolled thread
| Started by | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| First post | 2016-06-22 07:30 +0200 |
| Last post | 2016-06-22 19:40 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
linux-next: build warnings after merge of the kspp tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-06-22 07:30 +0200
Re: linux-next: build warnings after merge of the kspp tree Kees Cook <keescook@google.com> - 2016-06-22 19:20 +0200
Re: linux-next: build warnings after merge of the kspp tree Kees Cook <keescook@google.com> - 2016-06-22 19:40 +0200
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2016-06-22 07:30 +0200 |
| Subject | linux-next: build warnings after merge of the kspp tree |
| Message-ID | <rMITD-7ER-3@gated-at.bofh.it> |
Hi Kees,
After merging the kspp tree, today's linux-next build (i386 defconfig)
produced these warning:
x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
(over 2000 of these)
Introduced (maybe) by commit
e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
--
Cheers,
Stephen Rothwell
[toc] | [next] | [standalone]
| From | Kees Cook <keescook@google.com> |
|---|---|
| Date | 2016-06-22 19:20 +0200 |
| Message-ID | <rMTYK-6lC-17@gated-at.bofh.it> |
| In reply to | #1428423 |
On Tue, Jun 21, 2016 at 10:14 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Kees,
>
> After merging the kspp tree, today's linux-next build (i386 defconfig)
> produced these warning:
>
> x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
>
> (over 2000 of these)
>
> Introduced (maybe) by commit
>
> e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
I will investigate.
-Kees
--
Kees Cook
Chrome OS & Brillo Security
[toc] | [prev] | [next] | [standalone]
| From | Kees Cook <keescook@google.com> |
|---|---|
| Date | 2016-06-22 19:40 +0200 |
| Message-ID | <rMUi5-6sA-17@gated-at.bofh.it> |
| In reply to | #1428423 |
On Tue, Jun 21, 2016 at 10:14 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Kees,
>
> After merging the kspp tree, today's linux-next build (i386 defconfig)
> produced these warning:
>
> x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
>
> (over 2000 of these)
>
> Introduced (maybe) by commit
>
> e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
This is fixed now in the kspp tree; sorry for the noise. If anyone
wants to manual fix this up for i386 builds:
index 2da7f8eed1d7..f585766989c2 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -109,7 +109,7 @@ as-instr = $(call try-run,\
printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler
-o "$$TMP" -,$(2),$(3))
# Do not attempt to build with gcc plugins during cc-option tests.
-CC_OPTION_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
+CC_OPTION_CFLAGS = $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
# cc-option
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
-Kees
--
Kees Cook
Chrome OS & Brillo Security
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web