Changeset 851b842 in mainline


Ignore:
Timestamp:
2023-07-14T12:41:10Z (10 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
ticket/834-toolchain-update
Children:
b030416
Parents:
2b5628c
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-13 19:21:47)
git-committer:
Vojtech Horky <vojtech.horky@…> (2023-07-14 12:41:10)
Message:

Silence compiler when accessing low memory addresses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    r2b5628c r851b842  
    101101kernel_c_args = arch_kernel_c_args + kernel_defs + [
    102102        '-ffreestanding',
     103        # When accessing specific memory addresses that are below normal page size,
     104        # the compiler may assume that we actually dereferenced NULL pointer and
     105        # warns us about that. But in kernel we often need to access these
     106        # addresses directly hence we need to ignore these warnings.
     107        #
     108        # TODO: might make more sense to disable this selectively in specific
     109        # files (or better yet, for specific lines).
     110        '--param=min-pagesize=0',
    103111        # TODO: remove this flag
    104112        cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
Note: See TracChangeset for help on using the changeset viewer.