about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-11 22:44:16 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-11 22:44:16 -0700
commit41df9cbb448ab7b4fd352d64776cdfd02ed83a56 (patch)
tree16014ed58d6f2c89e584a9f70a5156fc5f7dd2e5
parent9f3b12b6c6c04cc80c111ab9c8c79eb4a0d73798 (diff)
downloadrust-41df9cbb448ab7b4fd352d64776cdfd02ed83a56.tar.gz
rust-41df9cbb448ab7b4fd352d64776cdfd02ed83a56.zip
rt: Turn on frame pointers for stack walking
-rw-r--r--mk/platform.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/platform.mk b/mk/platform.mk
index 6208cb54638..61526f1f559 100644
--- a/mk/platform.mk
+++ b/mk/platform.mk
@@ -9,8 +9,14 @@ endef
 $(foreach t,$(CFG_TARGET_TRIPLES),$(eval $(call DEF_HOST_VAR,$(t))))
 $(foreach t,$(CFG_TARGET_TRIPLES),$(info cfg: host for $(t) is $(HOST_$(t))))
 
+# FIXME: This appears to do nothing
 CFG_GCCISH_FLAGS += -fno-strict-aliasing
 
+# FIXME: no-omit-frame-pointer is just so that task_start_wrapper
+# has a frame pointer and the stack walker can understand it. Turning off
+# frame pointers everywhere is overkill
+CFG_GCCISH_CFLAGS += -fno-omit-frame-pointer
+
 # On Darwin, we need to run dsymutil so the debugging information ends
 # up in the right place.  On other platforms, it automatically gets
 # embedded into the executable, so use a no-op command.