Module Name:    src
Committed By:   martin
Date:           Mon Jan 26 16:23:03 UTC 2015

Modified Files:
        src/external/gpl3/gcc/dist/libsanitizer/tsan [netbsd-7]:
            tsan_rtl_amd64.S

Log Message:
Pull up following revision(s) (requested by skrll in ticket #458):
        external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S: revision 1.2
fix for PIC code.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.6.1 \
    src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S
diff -u src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.1.1.1 src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.1.1.1.6.1
--- src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.1.1.1	Sat Mar  1 08:41:18 2014
+++ src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S	Mon Jan 26 16:23:03 2015
@@ -40,7 +40,11 @@ __tsan_trace_switch_thunk:
   shr $4, %rsp  # clear 4 lsb, align to 16
   shl $4, %rsp
 
+#ifdef __PIC__
+  call __tsan_trace_switch@PLT
+#else
   call __tsan_trace_switch
+#endif
 
   # Unalign stack frame back.
   mov %rbx, %rsp  # restore the original rsp
@@ -119,7 +123,11 @@ __tsan_report_race_thunk:
   shr $4, %rsp  # clear 4 lsb, align to 16
   shl $4, %rsp
 
+#ifdef __PIC__
+  call __tsan_report_race@PLT
+#else
   call __tsan_report_race
+#endif
 
   # Unalign stack frame back.
   mov %rbx, %rsp  # restore the original rsp

Reply via email to