amd/*/gcccar.inc: Replace local declarations
commit4bf582f6bb3306b09e9100c7440c265c59094721
authorArthur Heymans <arthur@aheymans.xyz>
Wed, 23 Mar 2022 20:36:24 +0000 (23 21:36 +0100)
committerArthur Heymans <arthur@aheymans.xyz>
Wed, 11 May 2022 13:55:18 +0000 (11 13:55 +0000)
treebdb5aa7c3895824a2a706b1df33848a113cfaa90
parent8ddecd8538f688bde0f2c8c6d71b2062bac04b09
amd/*/gcccar.inc: Replace local declarations

Although useful to declare local symbols inside macros clang does not
support them. Using the \@ symbol which increments each time the macro
is used we can do the same. With BUILD_TIMELESS=1 the binaries don't
change and do build with GCC so nothing is lost here.

Change-Id: I01054e2bdcb63810b21eb51b46bdc6e1bd999516
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63045
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/vendorcode/amd/agesa/f14/gcccar.inc
src/vendorcode/amd/agesa/f15tn/gcccar.inc
src/vendorcode/amd/agesa/f16kb/gcccar.inc
src/vendorcode/amd/pi/00670F00/binaryPI/gcccar.inc
src/vendorcode/amd/pi/00730F01/binaryPI/gcccar.inc