car globals: add "used" attribute

Hardware / Coreboot - Patrick Georgi [georgi-clan.de] - 9 November 2014 05:25 UTC

Otherwise clang feels free to optimize away that variable (somewhat) and revive it in a different form inside .bss.

They probably have the language lawyery excuse for why that's perfectly legal, so let's play it safe. (relevant URL, sorry ron: http://llvm.org/bugs/show_bug.cgi?id=9520)

Change-Id: I603312ceea7207088dd29453cc8fb8f48c31af21

27cf247 car globals: add "used" attribute
src/arch/x86/include/arch/early_variables.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share