summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2022-01-17 23:24:24 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2022-01-24 10:25:07 +0000
commit49a4bc70cea348bb81385206be344cf03f3d2b7c (patch)
tree4a157ecb9509a7fac5efae0a3f1b90e387b4f754 /usr/src
parentdee7ba860656acbc12d71ef94c95f07396697c49 (diff)
downloadillumos-gate-49a4bc70cea348bb81385206be344cf03f3d2b7c.tar.gz
14417 Disable gcc's reorder-blocks-and-partition optimisation
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/Makefile.master3
1 files changed, 2 insertions, 1 deletions
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