Fix AArch32 build error

Pointer authentication code should be conditionally compiled only if
TFTF is built for AArch64 since AArch32 doesn't support pointer
authentication. This was previously causing a compilation error.

Change-Id: I97a0ea66f562cf2ebb41478b1b31a26bcaf815b2
Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
diff --git a/tftf/tests/extensions/ptrauth/test_ptrauth.c b/tftf/tests/extensions/ptrauth/test_ptrauth.c
index a1f41e2..564c56d 100644
--- a/tftf/tests/extensions/ptrauth/test_ptrauth.c
+++ b/tftf/tests/extensions/ptrauth/test_ptrauth.c
@@ -67,7 +67,7 @@
  * Makes a call to psci version, and checks that the EL3 pauth keys are not
  * leaked when it returns
  */
-#if __GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)
+#if (__GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)) && AARCH64
 __attribute__((target("sign-return-address=all")))
 #endif
 test_result_t test_pauth_leakage(void)
@@ -117,7 +117,7 @@
  * Makes a call to TSP ADD, and checks that the checks that the Secure World
  * pauth keys are not leaked
  */
-#if __GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)
+#if (__GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)) && AARCH64
 __attribute__((target("sign-return-address=all")))
 #endif
 test_result_t test_pauth_leakage_tsp(void)