This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

I386_PE_STRIP_ENCODING


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@bitrange.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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]