Author: adrian
Date: Thu Aug 25 22:32:10 2016
New Revision: 304823
URL: https://svnweb.freebsd.org/changeset/base/304823

Log:
  [mips] flip from =v to =r - let the compiler choose a temp register.
  
  =v is some ye olde gcc "use this specific register as the temp register"
  thing that they've deprecated and clang/llvm doesn't implement.
  
  Poked again and again by: sbruno

Modified:
  head/libexec/rtld-elf/mips/reloc.c

Modified: head/libexec/rtld-elf/mips/reloc.c
==============================================================================
--- head/libexec/rtld-elf/mips/reloc.c  Thu Aug 25 21:55:17 2016        
(r304822)
+++ head/libexec/rtld-elf/mips/reloc.c  Thu Aug 25 22:32:10 2016        
(r304823)
@@ -645,7 +645,7 @@ _mips_get_tls(void)
            ".set\tmips64r2\n\t"
            "rdhwr\t%0, $29\n\t"
            ".set\tpop"
-           : "=v" (_rv));
+           : "=r" (_rv));
        /*
         * XXXSS See 'git show c6be4f4d2d1b71c04de5d3bbb6933ce2dbcdb317'
         *
@@ -670,7 +670,7 @@ _mips_get_tls(void)
            ".set\tmips32r2\n\t"
            "rdhwr\t%0, $29\n\t"
            ".set\tpop"
-           : "=v" (_rv));
+           : "=r" (_rv));
        /*
         * XXXSS See 'git show c6be4f4d2d1b71c04de5d3bbb6933ce2dbcdb317'
         *
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to