Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libgcc_eh/Makefile.inc
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
COMPILERRTDIR= ${SRCTOP}/contrib/compiler-rt | |||||
UNWINDINCDIR= ${SRCTOP}/contrib/llvm/projects/libunwind/include | |||||
UNWINDSRCDIR= ${SRCTOP}/contrib/llvm/projects/libunwind/src | |||||
CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN | |||||
.PATH: ${COMPILERRTDIR}/lib/builtins | |||||
.PATH: ${UNWINDSRCDIR} | |||||
SRCS+= gcc_personality_v0.c | |||||
SRCS+= int_util.c | |||||
SRCS+= Unwind-EHABI.cpp | |||||
SRCS+= Unwind-sjlj.c | |||||
theraven: Do we need this? I don't think we use SJLJ exceptions anywhere do we? | |||||
dimUnsubmitted Not Done Inline ActionsYou're likely right, I guess this was in the list of files compiled by upstream. @emaste? dim: You're likely right, I guess this was in the list of files compiled by upstream. @emaste? | |||||
dimUnsubmitted Not Done Inline ActionsThe whole Unwind-sjlj.c file is clamped between #ifdef _LIBUNWIND_BUILD_SJLJ_APIS guards, and in config.h, there is: #if (defined(__APPLE__) && defined(__arm__)) || defined(__USING_SJLJ_EXCEPTIONS__) #define _LIBUNWIND_BUILD_SJLJ_APIS #endif Obviously the Apple part doesn't apply to us, and __USING_SJLJ_EXCEPTIONS__ seems to be defined only when LangOpts.SjLjExceptions is true. It *seems* that this option is false by default, though. dim: The whole `Unwind-sjlj.c` file is clamped between `#ifdef _LIBUNWIND_BUILD_SJLJ_APIS` guards… | |||||
SRCS+= UnwindLevel1-gcc-ext.c | |||||
SRCS+= UnwindLevel1.c | |||||
SRCS+= UnwindRegistersRestore.S | |||||
SRCS+= UnwindRegistersSave.S | |||||
SRCS+= libunwind.cpp | |||||
CFLAGS+= -I${UNWINDINCDIR} -I${.CURDIR} -D_LIBUNWIND_IS_NATIVE_ONLY | |||||
.if empty(CXXFLAGS:M-std=*) | |||||
CXXFLAGS+= -std=c++11 | |||||
.endif | |||||
CXXFLAGS+= -fno-rtti | |||||
STATIC_CXXFLAGS+= -fvisibility=hidden -fPIC | |||||
.if ${MK_DIRDEPS_BUILD} == "yes" | |||||
# Avoid dependency on lib/libc++ | |||||
CFLAGS+= -I${SRCTOP}/contrib/libc++/include | |||||
.endif | |||||
bdreweryUnsubmitted Not Done Inline ActionsHm, where did this come from? bdrewery: Hm, where did this come from? | |||||
dimUnsubmitted Not Done Inline ActionsI think this is a hack to make the C++ source files compile, since they need C++ headers. And to make it possible to compile libgcc_eh before libc++, probably? @emaste, do you recall? dim: I think this is a hack to make the C++ source files compile, since they need C++ headers. And… |
Do we need this? I don't think we use SJLJ exceptions anywhere do we?