[riot-commits] [RIOT-OS/RIOT] 125e4b: fe310: Support the LLVM toolchain (i.e. compilatio...

Alexandre Abadie noreply at github.com
Sat Feb 13 18:54:15 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 125e4b54c1381f3ee9ad4ced8d58fd521675b783
      https://github.com/RIOT-OS/RIOT/commit/125e4b54c1381f3ee9ad4ced8d58fd521675b783
  Author: Sören Tempel <tempel at uni-bremen.de>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M cpu/riscv_common/Makefile.include
    M makefiles/arch/riscv.inc.mk

  Log Message:
  -----------
  fe310: Support the LLVM toolchain (i.e. compilation with clang)

This requires -nostartfiles to be only passed to the linker, not the
compiler, as it is a linker flag and passing it to the compiler causes a
clang warning to be emitted.

Additionally, clang does not seem to support `-mcmodel=medlow` and
`-msmall-data-limit=8` but these options do not seem strictly necessary
to me anyhow thus they are deactivated conditionally when using clang.


  Commit: 5b15dc89329b9a88209368c7499c5d701c692f98
      https://github.com/RIOT-OS/RIOT/commit/5b15dc89329b9a88209368c7499c5d701c692f98
  Author: Sören Tempel <tempel at uni-bremen.de>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M cpu/riscv_common/irq_arch.c

  Log Message:
  -----------
  fe310: Fix debug format strings

read_csr() returns an unsigned long, not a uint32_t. This causes a
-Wformat warning to be emitted when compiling with clang. This commit
fixes the warning by changing the format string.


  Commit: 54dbc555c027e4e837aeb2e0e9cbce9fb0c5a0f0
      https://github.com/RIOT-OS/RIOT/commit/54dbc555c027e4e837aeb2e0e9cbce9fb0c5a0f0
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2021-02-13 (Sat, 13 Feb 2021)

  Changed paths:
    M cpu/riscv_common/Makefile.include
    M cpu/riscv_common/irq_arch.c
    M makefiles/arch/riscv.inc.mk

  Log Message:
  -----------
  Merge pull request #15176 from nmeum/pr/hifive1-llvm

fe310: Support compilation with clang


Compare: https://github.com/RIOT-OS/RIOT/compare/c50f7a177ceb...54dbc555c027


More information about the commits mailing list