This is the mail archive of the cygwin 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]

RE: Assembler problem while trying to integrate D iompiler in GCC suite


----Original Message----
>From: Gerrit P. Haase
>Sent: 07 June 2005 11:59

> Hi all,
> 
> I'm trying to integrate the D frontend for GCC in the GCC 3.4.4 release,

> What is new in the source regarding this problem is this patch which
> gives me the error cited below:

> diff -cr d-0.12/d-codegen.cc d-0.12.1/d-codegen.cc

> + #if D_GCC_VER >= 34
> + #ifdef ASM_OUTPUT_DEF
> + static int thunk_labelno;
> +
> + /* Create a static alias to function.  */
> +
> + static tree
> + make_alias_for_thunk (tree function)
> + {
> +   tree alias;
> +   char buf[256];
> +
> + #if defined (TARGET_IS_PE_COFF)
> +   if (DECL_ONE_ONLY (function))
> +     return function;
> + #endif
> +
> +   ASM_GENERATE_INTERNAL_LABEL (buf, "LTHUNK", thunk_labelno);



> Gives me this error now:
> 
> $ /gcc/gcc-3.4.4/gcc-3.4.4-1/.build/gcc/gdc -save-temps
> -B/gcc/gcc-3.4.4/gcc-3.4.4-1/.build/gcc/ -B/usr/i686-pc-cygwin/bin/
> -B/usr/i686-pc-cy>
> gdc: warning: -pipe ignored because -save-temps specified
> socketstream.s: Assembler messages:
> socketstream.s:1416: Error: Local symbol `LTHUNK0' can't be equated to
> undefined symbol `__D3std6stream6Stream9readExactFPvkZv'



  So what happens if you use a label that doesn't begin with an 'L'?  Frex


> +   ASM_GENERATE_INTERNAL_LABEL (buf, "__LTHUNK", thunk_labelno);


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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