diff mbox

flashbench: force gnu99 dialect on sh2a

Message ID 1361928158-27934-1-git-send-email-gilles.talis@gmail.com
State Accepted
Commit ba5ba0a279a9ed5dbc1d29f930d4183a34db1acf
Headers show

Commit Message

Gilles Talis Feb. 27, 2013, 1:22 a.m. UTC
Fixes:
http://autobuild.buildroot.org/results/33880036054c39cb04dad71bc8c0a9eece16fac6

CodeSourcery toolchains for sh2a only provide LLONG_MAX when
used with the gnu99 dialect.

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
 package/flashbench/flashbench.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Peter Korsgaard Feb. 27, 2013, 7:46 a.m. UTC | #1
>>>>> "Gilles" == Gilles Talis <gilles.talis@gmail.com> writes:

 Gilles> Fixes:
 Gilles> http://autobuild.buildroot.org/results/33880036054c39cb04dad71bc8c0a9eece16fac6

 Gilles> CodeSourcery toolchains for sh2a only provide LLONG_MAX when
 Gilles> used with the gnu99 dialect.

Committed, thanks.
diff mbox

Patch

diff --git a/package/flashbench/flashbench.mk b/package/flashbench/flashbench.mk
index faf8ae6..45d0540 100644
--- a/package/flashbench/flashbench.mk
+++ b/package/flashbench/flashbench.mk
@@ -11,8 +11,8 @@  FLASHBENCH_LICENSE_FILES = COPYING
 
 FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
 
-ifeq ($(BR2_microblaze),y)
-# microblaze toolchain only provides LLONG_MAX when used with gnu99 dialect
+ifeq ($(BR2_microblaze)$(BR2_sh2a),y)
+# microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect
 FLASHBENCH_CFLAGS += -std=gnu99
 endif