From 49a4bc70cea348bb81385206be344cf03f3d2b7c Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 17 Jan 2022 23:24:24 +0000 Subject: 14417 Disable gcc's reorder-blocks-and-partition optimisation Reviewed by: Toomas Soome Approved by: Gordon Ross --- usr/src/Makefile.master | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/src') diff --git a/usr/src/Makefile.master b/usr/src/Makefile.master index 274a11f0a9..bb67c95899 100644 --- a/usr/src/Makefile.master +++ b/usr/src/Makefile.master @@ -394,7 +394,8 @@ CCNOAUTOINLINE= \ # # Since at present we don't benefit from this even in userland, we disable it globally, # but the application of this may move into usr/src/uts/ in future. -CCNOREORDER= -_gcc=-fno-reorder-functions +CCNOREORDER= -_gcc=-fno-reorder-functions \ + -_gcc=-fno-reorder-blocks-and-partition # # gcc has a rather aggressive optimization on by default that infers loop -- cgit v1.2.3