* [PATCH] x86: add the flag -fno-reorder-blocks-and-partition
@ 2018-05-15 5:23 Mikulas Patocka
2018-05-15 5:33 ` Ingo Molnar
2018-05-22 0:19 ` kbuild test robot
0 siblings, 2 replies; 3+ messages in thread
From: Mikulas Patocka @ 2018-05-15 5:23 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: x86, linux-kernel
GCC 8 turns on -freorder-blocks-and-partition by default, the ORC unwinder
can't deal with it and it results in a lot of warnings "sibling call from
callable instruction with modified stack frame". This patch adds the
-fno-reorder-blocks-and-partition option to KBUILD_CFLAGS.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
---
arch/x86/Makefile | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6/arch/x86/Makefile
===================================================================
--- linux-2.6.orig/arch/x86/Makefile 2018-05-15 07:19:40.000000000 +0200
+++ linux-2.6/arch/x86/Makefile 2018-05-15 07:19:40.000000000 +0200
@@ -59,6 +59,7 @@ endif
#
KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
KBUILD_CFLAGS += $(call cc-option,-mno-avx,)
+KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks-and-partition,)
ifeq ($(CONFIG_X86_32),y)
BITS := 32
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] x86: add the flag -fno-reorder-blocks-and-partition
2018-05-15 5:23 [PATCH] x86: add the flag -fno-reorder-blocks-and-partition Mikulas Patocka
@ 2018-05-15 5:33 ` Ingo Molnar
2018-05-22 0:19 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2018-05-15 5:33 UTC (permalink / raw)
To: Mikulas Patocka, Josh Poimboeuf, Peter Zijlstra
Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-kernel
* Mikulas Patocka <mpatocka@redhat.com> wrote:
> GCC 8 turns on -freorder-blocks-and-partition by default, the ORC unwinder
> can't deal with it and it results in a lot of warnings "sibling call from
> callable instruction with modified stack frame". This patch adds the
> -fno-reorder-blocks-and-partition option to KBUILD_CFLAGS.
>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
> Cc: stable@vger.kernel.org
>
> ---
> arch/x86/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: linux-2.6/arch/x86/Makefile
> ===================================================================
> --- linux-2.6.orig/arch/x86/Makefile 2018-05-15 07:19:40.000000000 +0200
> +++ linux-2.6/arch/x86/Makefile 2018-05-15 07:19:40.000000000 +0200
> @@ -59,6 +59,7 @@ endif
> #
> KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
> KBUILD_CFLAGS += $(call cc-option,-mno-avx,)
> +KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks-and-partition,)
Could you check whether the latest objtool fixes in -tip:
git git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git master
solves those warnings?
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: add the flag -fno-reorder-blocks-and-partition
2018-05-15 5:23 [PATCH] x86: add the flag -fno-reorder-blocks-and-partition Mikulas Patocka
2018-05-15 5:33 ` Ingo Molnar
@ 2018-05-22 0:19 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2018-05-22 0:19 UTC (permalink / raw)
To: Mikulas Patocka
Cc: kbuild-all, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
Hi Mikulas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/auto-latest]
[also build test WARNING on v4.17-rc6 next-20180517]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Mikulas-Patocka/x86-add-the-flag-fno-reorder-blocks-and-partition/20180515-143916
config: x86_64-randconfig-g0-05220537 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/mellanox/mlx4/sense.o: warning: objtool: .text: unexpected end of section
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29337 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-22 0:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15 5:23 [PATCH] x86: add the flag -fno-reorder-blocks-and-partition Mikulas Patocka
2018-05-15 5:33 ` Ingo Molnar
2018-05-22 0:19 ` kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.