To enable a strict source code alignment, investigate if '-pedantic-errors"' could help on this. Create a task for tacking this.
Fixed the bugs in secure firmware after add build flags 'pedantic-errors' to GNUARM, bypassed some issues that difficult or will take too much efforts to solve.
Flags 'pedantic-errors' just added to GNUARM compiler, and just in secure firmware.
Patches have been done are put here https://review.trustedfirmware.org/#/q/topic:pedantic-errors+(status:open+OR+status:merged)
It will need more discuss and work if ARMCLANG and BL2 for GNUARM are also needed to support 'pedantic-errors' flag.