]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
none/tests/amd64/bug132918.c: Mark f64 as an output parameter
authorBart Van Assche <bvanassche@acm.org>
Thu, 11 May 2017 03:07:49 +0000 (03:07 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 11 May 2017 03:07:49 +0000 (03:07 +0000)
This change avoids that gcc 7 complains that f64 is used uninitialized
in this source file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16361

none/tests/amd64/bug132918.c

index 77eefd0136b36d8566cc5cad46ac133f7fdb8abe..c2cdb4dc312f55dce9c339fccdfe71c2cd375fab 100644 (file)
@@ -24,8 +24,8 @@ static void do_fprem ( Res* res, double x, double y )
      "fnstsw  %%ax\n\t"
      "movq    %%rax,%0\n\t"
      "movq    %%r15,%%rax"
-     : /*out*/ "=r" (c3210)
-     : /*in*/  "m" (f64), "m" (xx), "m" (yy)
+     : /*out*/ "=r" (c3210), "=m" (f64)
+     : /*in*/  "m" (xx), "m" (yy)
      : /*trash*/ "r15", "rax", "%st", "%st(1)", "cc"
    );
   res->d = f64;