Changeset abb70fc3 in mainline


Ignore:
Timestamp:
2023-10-22T16:41:50Z (7 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b7493ea0
Parents:
590cb6d2
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-13 19:21:47)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 16:41:50)
Message:

Silence compiler when accessing low memory addresses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

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