summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordp-arm <dimitris.papastamos@arm.com>2017-05-03 16:30:54 +0100
committerdp-arm <dimitris.papastamos@arm.com>2017-05-24 14:23:08 +0100
commit344af65608262b9ee9d71617c5f5e087c82bd7c4 (patch)
treec1615ea3e93ad6630a178a94710ef092f48cdde5
parent7c7dffd8aa63f168cd61770d9a6aa7923f8718af (diff)
Switch default C environment from c99 to gnu99
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>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9a29bd6..5396c0ed 100644
--- 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