Home | History | Annotate | Download | only in conf
History log of /src/sys/conf/copts.mk
RevisionDateAuthorComments
 1.12  04-Jul-2024  rin sys/conf/copts.mk: Drop fallthrough hack for zlib.c
 1.11  08-Aug-2023  mrg branches: 1.11.6;
introduce new GCC 12 warning disables and use them in a few places

this introduces 4 new warning disable flags:

CC_WNO_MISSING_TEMPLATE_KEYWORD
CC_WNO_REGISTER
CC_WNO_STRINGOP_OVERREAD
CC_WNO_ARRAY_BOUNDS

and documents them in README.warnings. of these, the string op
and array bounds are both problematic (real bugs) and also spurious
(not real bugs), and the other 2 are mostly temporary for older
3rd party code.

add some new uses of CC_WNO_STRINGOP_OVERFLOW.

fix m68k build for gallium and GCC 12.
 1.10  03-Jun-2023  lukem adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}

Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of
the older style more complex expressions.
 1.9  03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.8  03-Jun-2023  lukem bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.7  27-Aug-2022  rillig branches: 1.7.4;
sys/conf: fix typo in comment
 1.6  12-Apr-2021  mrg new GCC_NO_* uses for warning issues. most of the users of the new
GCC_NO_RETURN_LOCAL_ADDR are bugs in GCC itself, not the code.
 1.5  07-Mar-2020  mrg branches: 1.5.6;
XXX:

turn off -Wunused-but-set-variable for mips' linux_machdep.c and GCC 8.
 1.4  30-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.3  10-Feb-2019  mrg branches: 1.3.4;
mark pf.c, radeon_cs.c and via_dmablit.c for no fall thru error.

this was already done in the various modules, but not in the main
kernel.
 1.2  05-Feb-2019  mrg be sure to only apply zlib.c's -Wno-error=implicit-fallthrough to GCC 7.
push the setting into the rump and module version too.
 1.1  05-Feb-2019  mrg pass -Wno-error=implicit-fallthrough for zlib.c.

XXX: consider using copts.mk for various warning/copt flags passed
in kernel builds currently set via 'makeoptions' in files.* files.
this is suboptimal, as those all get embedded into the kernel with
config_file.h.
 1.3.4.4  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3.4.3  08-Apr-2020  martin Merge changes from current as of 20200406
 1.3.4.2  10-Jun-2019  christos Sync with HEAD
 1.3.4.1  10-Feb-2019  christos file copts.mk was added on branch phil-wifi on 2019-06-10 22:07:04 +0000
 1.5.6.1  17-Apr-2021  thorpej Sync with HEAD.
 1.7.4.1  20-Jul-2024  martin Pull up following revision(s) (requested by rin in ticket #739):

sys/net/zlib.c: revision 1.39
sys/conf/copts.mk: revision 1.12 (patch)

net/zlib.c: Add apparent /* FALLTHROUGH */'s to appease compilers
Ideas from t-kusaba at iij, thanks!

sys/conf/copts.mk: Drop fallthrough hack for zlib.c
 1.11.6.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed