Re: dllimport and __asm__("_alias" )

2007-02-03 Thread Christopher Faylor
On Sat, Feb 03, 2007 at 11:33:00PM +1300, Danny Smith wrote: >That is, to do the right thing, we would need to: > >extern __declspec(dllimport) void foo (void) __asm__("__imp__bar"); >void call_bar(void) >{ foo(); } > >to get >_call_bar: > pushl %ebp > movl__imp__bar, %ecx >

dllimport and __asm__("_alias" )

2007-02-03 Thread Danny Smith
Hello, I would appreciate help with While working on some dllimport problems with aliased symbols, I ran across this inconsistency with gcc (all versions) The use of a literal asmspec to rename a static lib symbol (say "bar"), extern void foo (void) __asm__("_bar"); void call_bar(void) { fo