summaryrefslogtreecommitdiff
path: root/usr/src/Makefile.master
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-02-15 00:26:39 +0200
committerToomas Soome <tsoome@me.com>2021-05-17 19:49:16 +0300
commitd7976f11093c24626f8d0e08643011f0028a8971 (patch)
tree258e3fdfc1a4b73eeb3eebca949c6e7b1d362083 /usr/src/Makefile.master
parent7879e8a6e519927d54da6cc205d016d1ffe88e09 (diff)
downloadillumos-joyent-d7976f11093c24626f8d0e08643011f0028a8971.tar.gz
13812 Makefile: add gcc 10
Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/Makefile.master')
-rw-r--r--usr/src/Makefile.master16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/src/Makefile.master b/usr/src/Makefile.master
index 92b768d6d4..91e78d1418 100644
--- a/usr/src/Makefile.master
+++ b/usr/src/Makefile.master
@@ -380,9 +380,11 @@ CCNOAUTOINLINE= \
-_gcc7=-fno-ipa-icf \
-_gcc8=-fno-ipa-icf \
-_gcc9=-fno-ipa-icf \
+ -_gcc10=-fno-ipa-icf \
-_gcc7=-fno-clone-functions \
-_gcc8=-fno-clone-functions \
- -_gcc9=-fno-clone-functions
+ -_gcc9=-fno-clone-functions \
+ -_gcc10=-fno-clone-functions
# GCC may put functions in different named sub-sections of .text based on
# their presumed calling frequency. At least in the kernel, where we actually
@@ -393,7 +395,8 @@ CCNOAUTOINLINE= \
CCNOREORDER= \
-_gcc7=-fno-reorder-functions \
-_gcc8=-fno-reorder-functions \
- -_gcc9=-fno-reorder-functions
+ -_gcc9=-fno-reorder-functions \
+ -_gcc10=-fno-reorder-functions
#
# gcc has a rather aggressive optimization on by default that infers loop
@@ -405,7 +408,8 @@ CCNOREORDER= \
CCNOAGGRESSIVELOOPS= \
-_gcc7=-fno-aggressive-loop-optimizations \
-_gcc8=-fno-aggressive-loop-optimizations \
- -_gcc9=-fno-aggressive-loop-optimizations
+ -_gcc9=-fno-aggressive-loop-optimizations \
+ -_gcc10=-fno-aggressive-loop-optimizations
#
# Options to control which version of stack-protector we enable. This
@@ -432,6 +436,7 @@ STACKPROTECT_ = -_gcc4=-fstack-protector
STACKPROTECT_ += -_gcc7=-fstack-protector-strong
STACKPROTECT_ += -_gcc8=-fstack-protector-strong
STACKPROTECT_ += -_gcc9=-fstack-protector-strong
+STACKPROTECT_ += -_gcc10=-fstack-protector-strong
STACKPROTECT_strong = $(STACKPROTECT_)
STACKPROTECT_none =
@@ -523,7 +528,8 @@ CERRWARN += -_gcc=-Wno-array-bounds
CNOWARN_UNINIT = -_gcc4=-Wno-uninitialized \
-_gcc7=-Wno-maybe-uninitialized \
-_gcc8=-Wno-maybe-uninitialized \
- -_gcc9=-Wno-maybe-uninitialized
+ -_gcc9=-Wno-maybe-uninitialized \
+ -_gcc10=-Wno-maybe-uninitialized
CERRWARN += -_smatch=-p=illumos_user
include $(SRC)/Makefile.smatch
@@ -589,7 +595,7 @@ CALLSYMS= -W0,-xdbggen=no%usedonly
# by the CTF tools. With Sun Studio this is stabs due to bugs in the Studio
# compilers. With GCC this is DWARF v2.
#
-DEBUGFORMAT= -_cc=-xdebugformat=stabs -_gcc=-gdwarf-2
+DEBUGFORMAT= -_cc=-xdebugformat=stabs -_gcc=-gdwarf-2 -_gcc10=-gstrict-dwarf
#
# Ask the compiler to include debugging information