Post by Ron PinkasPost by Enrico Maria GiordanoNo, probably not. I think doing so I have excluded all the rest of the
code, I don't know why exactly. :-(
Just add -DNODLL to BOTH C and Harbour commands.
I don't want to exclude calldll.c module. I have excluded it by mistake.
Anyway, I prepare a reduced sample that produces the error if compiled
with bcc32c.exe:
typedef union
{
double Double;
} RESULT;
int main()
{
RESULT Res;
asm volatile ( "" : "=r" ( Res ) );
return 0;
}
Can you try it and let me know if you get the same error?
Embarcadero C++ 7.70 for Win32 Copyright (c) 2012-2023 Embarcadero
Technologies, Inc.
dllcall.c:
fatal error: error in backend: Access past stack top!
bcc32c.exe: error: clang frontend command failed with exit code 70 (use
-Xdriver -v to see invocation)
Embarcadero Technologies Inc. bcc32c version 5.0.2
(f0862325.b014dc86.38289) (based on LLVM 5.0.2)
Target: i686-pc-windows-omf
Thread model: posix
InstalledDir: e:\FW\Temp\BCC77\bin
bcc32c.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source,and associated run script.
dllcall.c:
bcc32c.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
bcc32c.exe: note: diagnostic msg:
C:\Users\ENRICO~1\AppData\Local\Temp\dllcall-4a8cec.c
Wrote crash dump file
"C:\Users\ENRICO~1\AppData\Local\Temp\bcc32c.exe-0966b3.dmp"
0x00000000 (0x02FEE794 0x01A7D690 0x00000001 0x00000000) <unknown module>
0x00AAC019 (0x00007FFF 0x00000000 0x00010100 0x13D10C00)
0x0190623D (0x00000000 0x00010100 0x13D10C00 0x022A0A70)
--
Enrico Maria Giordano
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg