Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 13:37:32 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280909 - head/contrib/gcc
Message-ID:  <201503311337.t2VDbWpJ095808@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Mar 31 13:37:32 2015
New Revision: 280909
URL: https://svnweb.freebsd.org/changeset/base/280909

Log:
  unwind-d2 build workaround for arm64
  
  The __builtin_init_dwarf_reg_size_table function is unimplemented in
  clang 3.6 for AArch64. Comment it out for now and replace it with
  a message and abort.
  
  Tracked in upstream LLVM PR 22997
  https://llvm.org/bugs/show_bug.cgi?id=22997
  
  Submitted by:	andrew

Modified:
  head/contrib/gcc/unwind-dw2.c

Modified: head/contrib/gcc/unwind-dw2.c
==============================================================================
--- head/contrib/gcc/unwind-dw2.c	Tue Mar 31 12:53:07 2015	(r280908)
+++ head/contrib/gcc/unwind-dw2.c	Tue Mar 31 13:37:32 2015	(r280909)
@@ -1393,7 +1393,16 @@ uw_advance_context (struct _Unwind_Conte
 static inline void
 init_dwarf_reg_size_table (void)
 {
+/*
+ * ARM64TODO: http://llvm.org/pr22997
+ * llvm 3.6 doesn't support __builtin_init_dwarf_reg_size_table on AArch64.
+ */
+#ifdef __aarch64__
+  printf("Unimplemented: init_dwarf_reg_size_table\n");
+  abort();
+#else
   __builtin_init_dwarf_reg_size_table (dwarf_reg_size_table);
+#endif
 }
 
 static void



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