Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 13, 2003 Internal error | ||||
---|---|---|---|---|
| ||||
The following file: extern const char cdecl x86_type; #pragma alias (x86_type, "x86_type") int main (void) {} causes an internal error: e:\net\watt\src>dmc test.c Internal error: nwc 749 I need the alias to avoid the '_' prefix. The variable is allocated in an external asm-file. --gv |
April 14, 2003 Re: Internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gisle Vanem | For now, you can: 1) change the .asm file 2) use __pascal instead of __cdecl 3) use patchobj to change the name in the .obj file "Gisle Vanem" <gvanem@eunet.no> wrote in message news:b7cqh2$29ot$1@digitaldaemon.com... > The following file: > > extern const char cdecl x86_type; > #pragma alias (x86_type, "x86_type") > int main (void) {} > > causes an internal error: > > e:\net\watt\src>dmc test.c > Internal error: nwc 749 > > I need the alias to avoid the '_' prefix. The variable is allocated in an external asm-file. > > --gv > > |
April 14, 2003 Re: Internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> wrote:
> For now, you can:
>
> 1) change the .asm file
> 2) use __pascal instead of __cdecl
> 3) use patchobj to change the name in the .obj file
The c/asm sources are compiled with other compilers too
(into a lib), so that's not an option. Will it be fixes in next
version? I'm using the latest. AFAICT it's 8.33.13.
--gv
|
April 14, 2003 Re: Internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gisle Vanem | Patchobj will still work - you can use it on the output of DMC. "Gisle Vanem" <gvanem@eunet.no> wrote in message news:b7e089$5t3$1@digitaldaemon.com... > "Walter" <walter@digitalmars.com> wrote: > > For now, you can: > > > > 1) change the .asm file > > 2) use __pascal instead of __cdecl > > 3) use patchobj to change the name in the .obj file > > The c/asm sources are compiled with other compilers too > (into a lib), so that's not an option. Will it be fixes in next > version? I'm using the latest. AFAICT it's 8.33.13. > > --gv > > |
Copyright © 1999-2021 by the D Language Foundation