[PATCH] ppc64: broken 'foreign import wrapper'
Attaching simple testcase failing horribly on ppc64:
amd64 test output:
$ ./dist/build/fct/fct
C call:[result = 105]
C call with registered C callback function:C(72)C(33)[result = 735]
C call with registered Hs-C callback function:H(72)H(33)[result = 735]
TEST PASSED
ppc64 test output:
$ dist/build/fct/fct
C call:[result = 105]
C call with registered C callback function:C(72)C(33)[result = 735]
C call with registered Hs-C callback function:[result = 105]
Segmentation fault
As you see C call with registered Hs-C callback function called not a registered function, but something strange. There is no even registered callback (glo_cb == 0).
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Sergei Trofimovich