aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-06-25 18:10:35 +0200
committerSverker Eriksson <[email protected]>2012-06-25 18:24:47 +0200
commiteb30ab3c820a4ac1142cf52f24e1c8ab8b0c913d (patch)
tree97ef65b5f91c44b416d31b2e3b97e14d88975d00 /erts/emulator
parent4aa6543d18fa18677082d5f67e7b969d4e354ddb (diff)
downloadotp-eb30ab3c820a4ac1142cf52f24e1c8ab8b0c913d.tar.gz
otp-eb30ab3c820a4ac1142cf52f24e1c8ab8b0c913d.tar.bz2
otp-eb30ab3c820a4ac1142cf52f24e1c8ab8b0c913d.zip
Workaround gcc bug affecting ARM debug build
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 04069b517a..985ef72517 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -924,6 +924,11 @@ $(TTF_DIR)/hipe_arm_bifs.S: hipe/hipe_arm_bifs.m4 hipe/hipe_arm_asm.m4 \
$(OBJDIR)/hipe_arm_bifs.o: $(TTF_DIR)/hipe_arm_bifs.S \
$(TTF_DIR)/hipe_literals.h
+# Use -fomit-frame-pointer to work around gcc (v4.5.2) bug causing
+# "error: r7 cannot be used in asm here" for DEBUG build.
+$(OBJDIR)/hipe_arm.o: hipe/hipe_arm.c
+ $(CC) $(subst O2,O3, $(CFLAGS)) -fomit-frame-pointer $(INCLUDES) -c $< -o $@
+
# end of HiPE section
########################################