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
This commit is contained in:
Rene Gollent 2010-10-23 15:35:41 +00:00
parent 6b0cdfbc24
commit cc7d899023

View File

@ -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) ] ;