fix compile error with gcc-10 164/head
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 14 Aug 2020 07:59:11 +0000 (09:59 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 14 Aug 2020 08:10:58 +0000 (10:10 +0200)
commit559e3eba3b4cf103da6b8d022f3e1387278b9db8
tree8c6e43a0e13533f0c2f27255b7b68025896339ed
parente7fa85ac9447cbf22c4a2b6b22323a4ab46aef2c
fix compile error with gcc-10

With GCC 10.2 we will get following error:
toolchain/inst/lib/gcc/xtensa-elf/10.2.0/../../../../xtensa-elf/bin/ld:
  target_firmware/build/k2/libfirmware.a(init.c.obj):target_firmware/magpie_fw_dev/target/init/init.h:53:
  multiple definition of `_assfail_ori';
  target_firmware/build/k2/libfirmware.a(app_start.c.obj):target_firmware/magpie_fw_dev/target/init/init.h:53:
  first defined here

Since previous compilers merged this variable automatically, the GCC 10
will do it only if we will tell it to do so. With this patch we should
be able to compile this firmware with new and old compiler.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/init/app_start.c
target_firmware/magpie_fw_dev/target/init/init.h