Mail Archives: cygwin-apps/2001/12/14/23:21:38
Hi
Recent patch to GCC fixes one problem with asm specified names and
dllexport. However, using asm specified names with dllimport will still
create assembler error. Is the following testcase (which fails now, because
names like @i.__imp__*foo, don't get stripped properly) realistic? I have
a patch that will fix, but affects code in both i386_pe_mark_dllimport in
winnt.c (don't add __imp_ yet) and cygwin.h (do it in ASM_OUTPUT_LABELREF).
But first, does failure of the following testcase represent anything to
worry about?
Danny
/* Modified from gcc.dg/asm-fs-1.c
Origin: <hp AT bitrange DOT com>
Make sure we do not get spurious '*' characters in section names or
elsewhere, with asm-specified names.
Special test for targets supporting dllimport
*/
/* { dg-do compile } */
/* { dg-options "-ffunction-sections -fdata-sections" } */
extern int __attribute__((dllimport)) foobar asm ("_baz");
int foo(void) asm ("_bar");
int foo(void) {return foobar;}
/* { dg-final { scan-assembler-not "\\*_bar" } } */
/* { dg-final { scan-assembler-not "\\*_baz" } } */
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your festive greetings online!
- Raw text -