Only emit DWARF unwind info when building with GCC
authorAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 12:53:37 +0000 (07:53 -0500)
committerAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 12:53:37 +0000 (07:53 -0500)
ChangeLog
src/x86/sysv.S
src/x86/unix64.S

index b9145d165ecf8aa6847cb27ff2abf8c778fa3a19..464dbe873a714e429796e5691db28bf3ea160605 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-01-08  Anthony Green  <green@moxielogic.com>
 
+       * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
+       when building with the GNU toolchain.
        * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
        compiler.
 
index f108dd80d71993f8d7e006d62bf557d7fdb34a06..69e7e8d7ff8e5da7e088813fa0bbe60c494c80e4 100644 (file)
@@ -1,5 +1,6 @@
 /* -----------------------------------------------------------------------
-   sysv.S - Copyright (c) 1996, 1998, 2001-2003, 2005, 2008, 2010  Red Hat, Inc.
+   sysv.S - Copyright (c) 2013  The Written Word
+         - Copyright (c) 1996,1998,2001-2003,2005,2008,2010  Red Hat, Inc.
    
    X86 Foreign Function Interface 
 
@@ -328,6 +329,9 @@ ffi_closure_raw_SYSV:
        .size   ffi_closure_raw_SYSV, .-ffi_closure_raw_SYSV
 #endif
 
+#if defined __GNUC__
+/* Only emit dwarf unwind info when building with GNU toolchain.  */
+
 #if defined __PIC__
 # if defined __sun__ && defined __svr4__
 /* 32-bit Solaris 2/x86 uses datarel encoding for PIC.  GNU ld before 2.22
@@ -459,6 +463,7 @@ ffi_closure_raw_SYSV:
        .align 4
 .LEFDE3:
 
+#endif
 #endif
 
 #endif /* ifndef __x86_64__ */
index 7a6619a54864482635051ffae3ac13449ab1b49a..37094f18dfe41480f0b2db952a09ad4de5eede4f 100644 (file)
@@ -1,6 +1,7 @@
 /* -----------------------------------------------------------------------
-   unix64.S - Copyright (c) 2002  Bo Thorsen <bo@suse.de>
-             Copyright (c) 2008  Red Hat, Inc
+   unix64.S - Copyright (c) 2013  The Written Word
+           - Copyright (c) 2008  Red Hat, Inc
+           - Copyright (c) 2002  Bo Thorsen <bo@suse.de>
 
    x86-64 Foreign Function Interface 
 
@@ -324,6 +325,9 @@ ffi_closure_unix64:
 .LUW9:
        .size   ffi_closure_unix64,.-ffi_closure_unix64
 
+#ifdef __GNUC__
+/* Only emit DWARF unwind info when building with the GNU toolchain.  */
+
 #ifdef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
        .section        .eh_frame,"a",@unwind
 #else
@@ -419,6 +423,8 @@ ffi_closure_unix64:
        .align 8
 .LEFDE3:
 
+#endif /* __GNUC__ */
+       
 #endif /* __x86_64__ */
 
 #if defined __ELF__ && defined __linux__