Date: Mon, 17 Feb 2020 20:26:39 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r526426 - head/science/mbdyn/files Message-ID: <202002172026.01HKQdbQ077830@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Feb 17 20:26:39 2020 New Revision: 526426 URL: https://svnweb.freebsd.org/changeset/ports/526426 Log: science/mbdyn: fix build on powerpc* result is undefined: wraptest.cc:325:9: error: 'result' was not declared in this scope 325 | time = result << 32; | ^~~~~~ PR: 244202 Approved by: yuri (maintainer) Added: head/science/mbdyn/files/ head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc (contents, props changed) Added: head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc Mon Feb 17 20:26:39 2020 (r526426) @@ -0,0 +1,13 @@ +--- libraries/libmbwrap/wraptest.cc.orig 2020-02-17 19:20:23 UTC ++++ libraries/libmbwrap/wraptest.cc +@@ -321,9 +321,7 @@ static inline unsigned long long rd_CPU_ts(void) + "\tbne 0b \n" + : "=r"(upper),"=r"(lower),"=r"(tmp) + ); +- time = upper; +- time = result << 32; +- time = result|lower; ++ time = (upper << 32) | lower; + #endif + return time; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002172026.01HKQdbQ077830>