summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-atf/imx-atf/0001-Makefile-Suppress-array-bounds-error.patch
Commit message (Collapse)AuthorAgeFilesLines
* imx-atf: Refine array-bounds patch commit messagebackport-1142-to-kirkstoneTom Hochstein2022-07-251-5/+10
| | | | | | | | | Refine the commit message for the patch 0001-Makefile-Suppress-array-bounds-error.patch, making it clear that the patch is a workaround for an issue in GCC 12, and that the issue is fixed in GCC 13. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 20586ab8aeb5ac9f71ab05b449fa25b406c5a2b7)
* imx-atf: Suppress array-bounds errorTom Hochstein2022-06-161-0/+42
The array-bounds error is triggered now in cases where it was silent before, causing errors like: ``` plat/imx/imx8m/hab.c: In function 'imx_hab_handler': plat/imx/imx8m/hab.c:64:57: error: array subscript 0 is outside array bounds of 'uint32_t[0]' {aka 'unsigned int[]'} [-Werror=array-bounds] 64 | #define HAB_RVT_CHECK_TARGET_ARM64 ((unsigned long)*(uint32_t *)(HAB_RVT_BASE + 0x18)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` It appears that these new cases will be silenced soon in gcc [1], so for now just silence the warning locally as workaround. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578#c39 Fixes: #1084 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit dc3cb910f49fc50de9539902b4ecef159603b426)