[riot-commits] [RIOT-OS/RIOT] 3dbbcd: tlsf: fix for llvm

Martine Lenders authmillenon at gmail.com
Wed Aug 1 10:25:51 CEST 2018


  Branch: refs/heads/2018.07-branch
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 3dbbcde307e2a2668fbfab8c58db25707ee50027
      https://github.com/RIOT-OS/RIOT/commit/3dbbcde307e2a2668fbfab8c58db25707ee50027
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2018-08-01 (Wed, 01 Aug 2018)

  Changed paths:
    M pkg/tlsf/contrib/tlsf-malloc.c

  Log Message:
  -----------
  tlsf: fix for llvm

The `__GNUC__` is also available in `clang` as is just used to provide
the major version of a GNU-C compatible compiler [[1]]. So I check for
`tlsf` if the `alloc_size()` is available by using the combination of
macros as proposed here: https://stackoverflow.com/a/43205345/395687

[1]: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

(cherry picked from commit 82c318224be1b9c166dc4096bff56bee5008ed2c)


  Commit: c6e9b71d79d7cf403baa6b4194c42dba66d1669a
      https://github.com/RIOT-OS/RIOT/commit/c6e9b71d79d7cf403baa6b4194c42dba66d1669a
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2018-08-01 (Wed, 01 Aug 2018)

  Changed paths:
    M pkg/tlsf/contrib/tlsf-malloc.c

  Log Message:
  -----------
  Merge pull request #9662 from miri64/2018.07/pkg/fix/tlsf-llvm

tlsf: fix for llvm [backport 2018.07]


Compare: https://github.com/RIOT-OS/RIOT/compare/2ec6ccee735d...c6e9b71d79d7
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list