svn commit: r262302 - projects/clang-sparc64/share/mk

Dimitry Andric dim at FreeBSD.org
Fri Feb 21 19:58:46 UTC 2014


Author: dim
Date: Fri Feb 21 19:58:45 2014
New Revision: 262302
URL: http://svnweb.freebsd.org/changeset/base/262302

Log:
  In case source files are compiled with -g, tell clang not to emit .cfi
  directives, since on sparc64 we must still GNU as, which does not
  support those directives.
  
  Note there are several programs and libraries in our tree, which are
  always compiled with -g, even if DEBUG_FLAGS is not set by the user!

Modified:
  projects/clang-sparc64/share/mk/bsd.sys.mk

Modified: projects/clang-sparc64/share/mk/bsd.sys.mk
==============================================================================
--- projects/clang-sparc64/share/mk/bsd.sys.mk	Fri Feb 21 18:49:08 2014	(r262301)
+++ projects/clang-sparc64/share/mk/bsd.sys.mk	Fri Feb 21 19:58:45 2014	(r262302)
@@ -120,6 +120,10 @@ CLANG_NO_IAS=	 -no-integrated-as
 CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\
 		 -mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret
 CFLAGS+=	 -Qunused-arguments
+.if ${MACHINE_CPUARCH} == "sparc64"
+# Don't emit .cfi directives, since we must use GNU as on sparc64, for now.
+CFLAGS+=	 -fno-dwarf2-cfi-asm
+.endif # SPARC64
 CFLAGS+=	 ${CFLAGS.clang}
 CXXFLAGS+=	 ${CXXFLAGS.clang}
 .else # !CLANG


More information about the svn-src-projects mailing list