From cc7d899023c58d4238c8ad48aefb56ba5281be23 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 23 Oct 2010 15:35:41 +0000 Subject: [PATCH] When using gcc 4, disallow use of CFI asm for now. This renders executables generated by Haiku's build sys usable with our Debugger, pending support for gcc4's (different) exception handler frame format. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39071 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 30e26faa8a..06f5eb3891 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -393,6 +393,11 @@ HAIKU_KERNEL_WARNING_C++FLAGS = -Wall -Wno-trigraphs -Wno-multichar ; # debug flags HAIKU_DEBUG_FLAGS ?= -ggdb ; +# TODO: remove once Debugger properly supports gcc4 .eh_frames +if $(HAIKU_GCC_VERSION[1]) >= 4 { + HAIKU_DEBUG_FLAGS += -fno-dwarf2-cfi-asm ; +} + # debug 0: suppress asserts HAIKU_DEBUG_0_CCFLAGS = [ FDefines NDEBUG=$(NDEBUG) ] ; HAIKU_DEBUG_0_C++FLAGS = [ FDefines NDEBUG=$(NDEBUG) ] ;