helper: add compiler.h to handle compiler specific workarounds
commite8f376e3c1874ccd14e148164d9695a93c575def
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 4 Mar 2023 22:56:35 +0000 (4 23:56 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 18 Mar 2023 21:57:27 +0000 (18 21:57 +0000)
tree9fdfba47a1719d66e8535d5361670a5d659d8300
parent904d58c208ab03f09f8d8e7184d49f42f6e16533
helper: add compiler.h to handle compiler specific workarounds

Not all compilers nor compiler versions supports the attributes
used in OpenOCD code.
Collect in a single file the workaround to handle them.

Change-Id: I92d871337281169134ce8e40b2064591518be71f
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7519
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/helper/Makefile.am
src/helper/compiler.h [new file with mode: 0644]
src/helper/nvp.h