Closed sarahec closed 1 year ago
The formatting script is sorting the headers and re-wrapped some lines in base.cc and double.cc. Please take a look.
Fixes applied
Changes in the force-pushed update:
using namespace std
. No other formatting changes applied.Did you run the tests? There seem to be a couple of cases which are compiled with the oacc's (incomplete C++ support), which doesn't yet have a stdlib.
<system_testing errors with Current shell environment. With revision a0b8a6fcaa7b46c131bbf4684974a38b07c2d3c1.>
[349637] ./procgen/hpu/test_hpu_embedded.testdesc: half-precision FPUs by generating and simulating a processor...FAIL (0m0.569s)
[349645] ./bintools/Compiler/RegressionTests/bool_return_value.testdesc: Test that boolean return values work...FAIL (0m0.436s)
Differences found against verification data are stored into difference.txt
</system_testing errors with Current shell environment. With revision a0b8a6fcaa7b46c131bbf4684974a38b07c2d3c1.>
Here's the info for how to run the tests if you haven't before: https://github.com/cpc/openasip/wiki/Contributor-Info
Thank you. I had been running tests from the test directory and missed that there's a test driver script. It's also flagging problems I hadn't seen earlier.
This may take some time, as compiletest isn't passing on a fresh checkout of the project.
Filed #223 which is blocking resolution of the above question.
I'm going to close this for now and come back when I have a reliable testing setup.
This replaces system headers such as
<math.h>
with the corresponding C++ header (<cmath>
) ni C++ code.Each of the compiler suites includes its own c++ headers, and there's a risk of the system headers differing from these and causing subtle bugs.