Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2014 23:28:16 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r275151 - projects/clang350-import/sys/conf
Message-ID:  <201411262328.sAQNSG4V034758@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Nov 26 23:28:16 2014
New Revision: 275151
URL: https://svnweb.freebsd.org/changeset/base/275151

Log:
  Since for clang 3.5.0 ARM EHABI is now the default, the -mllvm
  -arm-enable-ehabi flag is no longer supported.  Use it only for older
  versions of clang.

Modified:
  projects/clang350-import/sys/conf/Makefile.arm

Modified: projects/clang350-import/sys/conf/Makefile.arm
==============================================================================
--- projects/clang350-import/sys/conf/Makefile.arm	Wed Nov 26 23:07:54 2014	(r275150)
+++ projects/clang350-import/sys/conf/Makefile.arm	Wed Nov 26 23:28:16 2014	(r275151)
@@ -47,8 +47,10 @@ CFLAGS.clang += -mfpu=none
 
 .if !empty(DDB_ENABLED)
 CFLAGS += -funwind-tables
-# clang requires us to tell it to emit assembly with unwind information
-CFLAGS.clang += -mllvm -arm-enable-ehabi
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30500
+# clang < 3.5.0 requires us to tell it to emit assembly with unwind information
+CFLAGS += -mllvm -arm-enable-ehabi
+.endif
 .endif
 
 # hack because genassym.c includes sys/bus.h which includes these.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411262328.sAQNSG4V034758>