tools-common: add gcc attributes
tools-common: add gcc attributes

Add macros for two gcc attributes and use them in die()
and die_perror().

Signed-off-by: Bartosz Golaszewski <108de5fbc428215dc26df4468b48691526611148@gmail.com>

brgl/libgpiod,clemensg/libgpiod,clemensg/libgpiod,brgl/libgpiod,brgl/libgpiod,brgl/libgpiod