-noinl does not play well with -t mt_pth
I am trying to get the wheels back onto APEX/sac2c (See Issue #2233 (closed)). I tried -noinl, which is okay as a workaround for the apex unit tests, BUT that appears to break -mt-pth:
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ ls
a.out a.out.c a.out.i a.out.o host testindx.sac testindx.unittest.sac tree
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ sac2c testindx.sac -t mt_pth
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ sac2c testindx.unittest.sac -t mt_pth
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ a.out -mt 3
5.00002e+11
0
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ a.out -mt 1
5.00002e+11
0
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ sac2c testindx.sac -t mt_pth -noinl
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ sac2c testindx.unittest.sac -t mt_pth -noinl
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ a.out -mt 1
a.out: /tmp/SAC_e5IFN5/fun1.c:16477: SACf_testindx_CLArray__sel__i_1__i_X: Assertion `SAC_MT_globally_single && "An ST/SEQ small-arena call in the MT/XT context!!"' failed.
Aborted (core dumped)
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/testindx/crud$ a.out -mt 2
a.out: /tmp/SAC_e5IFN5/fun1.c:16477: SACf_testindx_CLArray__sel__i_1__i_X: Assertion `SAC_MT_globally_single && "An ST/SEQ small-arena call in the MT/XT context!!"' failed.
a.out: /tmp/SAC_e5IFN5/fun1.c:16477: SACf_testindx_CLArray__sel__i_1__i_X: Assertion `SAC_MT_globally_single && "An ST/SEQ small-arena call in the MT/XT context!!"' failed.
Aborted (core dumped)
sac2c -V
sac2c 1.3.3-MijasCosta-1047-g0c4a5
build-type: RELEASE
built-by: "sac" at 2023-02-15T14:35:41
I note that 4 out of 60 apex unit tests break when compiled with -noinl -t mt_pth,
I tried the test with -noinl.
That avoids this crash, but results in 4 failures for -t mt_pth that look similar to #1135.