coreboot-kgpe-d16/src
Jonathan Neuschäfer 6dff3fdd40 arch/riscv: Adjust compiler flags for scan-build
Clang doesn't understand -march=riscv64imac and -mcmodel=medany, so
don't use them when running the clang static analyzer. On the other
hand, __riscv and __riscv_xlen need to be defined in order to select
some macros in src/arch/riscv/include/arch/encoding.h. __riscv_flen
selects the floating-point paths in src/arch/riscv/misaligned.c.
-mabi is moved with -march for consistency.

A complete list of preprocessor definitions on RISC-V can be found at
https://github.com/riscv/riscv-toolchain-conventions#cc-preprocessor-definitions

With this commit, scan-build produces a useful result on RISC-V.

Change-Id: Ia2eb8c3c2f7eb5ddd47db24b8e5fcd6eaf6c5589
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/28713
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Philipp Hug <philipp@hug.cx>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2018-10-04 09:38:22 +00:00
..
acpi
arch arch/riscv: Adjust compiler flags for scan-build 2018-10-04 09:38:22 +00:00
commonlib complier.h: add __always_inline and use it in code base 2018-09-14 08:16:37 +00:00
console complier.h: add __noreturn and use it in code base 2018-09-10 15:02:51 +00:00
cpu cpu/intel/car: Fix typo 2018-10-04 09:38:04 +00:00
device src/device/device.c: Don't use device_t in ramstage 2018-09-19 10:35:01 +00:00
drivers drivers/intel/wifi: Add DID for Intel WIFI module 8260, 8275 2018-10-01 18:03:55 +00:00
ec ec/google/chromeec: Define a sync IRQ if needed 2018-10-04 09:36:59 +00:00
include soc/amd/stoneyridge: Add IOMMU support 2018-10-03 21:34:20 +00:00
lib src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
mainboard mb/google/octopus: Enable DRAM_PART_NUM_IN_CBI feature for Fleex 2018-10-04 09:37:48 +00:00
northbridge src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
security security/tpm: Fix TPM 1.2 state machine issues 2018-08-21 15:45:15 +00:00
soc soc/amd/stoneyridge: Add IOMMU support 2018-10-03 21:34:20 +00:00
southbridge sb/intel/bd82x6x: Don't use device_t 2018-09-21 14:13:02 +00:00
superio superio/ite/it8721f: Add SuperIO ACPI declarations 2018-08-21 14:45:36 +00:00
vendorcode vendorcode/amd/pi/00670F00/Lib: Remove folder 2018-09-28 10:15:22 +00:00
Kconfig src/Kconfig: Drop a superfluous word 2018-10-01 15:28:47 +00:00