Switch default C environment from c99 to gnu99
authordp-arm <dimitris.papastamos@arm.com>
Wed, 3 May 2017 15:30:54 +0000 (16:30 +0100)
committerdp-arm <dimitris.papastamos@arm.com>
Wed, 24 May 2017 13:23:08 +0000 (14:23 +0100)
Since TF uses GCC extensions, switch the C environment
from c99 to gnu99.

This change allows armclang to build TF.

Change-Id: Iaacb2726ba1458af59faf607ae9405d6eedb9962
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Makefile

index d9a29bd6510f133a93d527c461c31b17ba13587e..5396c0ed50a255f885a636bcbfb3050e8fbf674b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -135,8 +135,8 @@ ASFLAGS                     +=      $(CPPFLAGS) $(ASFLAGS_$(ARCH))                  \
                                -D__ASSEMBLY__ -ffreestanding                   \
                                -Wa,--fatal-warnings
 TF_CFLAGS              +=      $(CPPFLAGS) $(TF_CFLAGS_$(ARCH))                \
-                               -ffreestanding -fno-builtin -Wall -std=c99 -Os  \
-                               -ffunction-sections -fdata-sections
+                               -ffreestanding -fno-builtin -Wall -std=gnu99    \
+                               -Os -ffunction-sections -fdata-sections
 
 LDFLAGS                        +=      --fatal-warnings -O1
 LDFLAGS                        +=      --gc-sections