Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <42A58218.7040103@familiehaase.de> Date: Tue, 07 Jun 2005 13:16:40 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 Newsgroups: D.gnu To: cygwin Subject: Re: Assembler problem while trying to integrate D iompiler in GCC suite References: <42A57DF4 DOT 3030705 AT familiehaase DOT de> <42A58087 DOT 3080506 AT familiehaase DOT de> In-Reply-To: <42A58087.3080506@familiehaase.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Gerrit P. Haase wrote: > Gerrit P. Haase wrote: > >> Hi all, >> >> I'm trying to integrate the D frontend for GCC in the GCC 3.4.4 release, >> I'm in contact with the maintainer David Friedman, he successfully >> compiled the current (0.12.1) sources with MinGW and I expect that he >> also has tested it with other supported platforms, however I get this >> error now and I have not really an idea what the reason may be. I found >> one patch for gas for another platform: >> http://sources.redhat.com/bugzilla/show_bug.cgi?id=857 >> http://sources.redhat.com/bugzilla/show_bug.cgi?id=936 >> http://sourceware.org/ml/binutils/2005-05/msg00289.html >> >> However I don't know if this is related or if there may be another >> problem with the e.g. source. >> >> What is new in the source regarding this problem is this patch which >> gives me the error cited below: > > >> *************** >> *** 1787,1799 **** >> IRState::outputThunk(tree thunk_decl, tree target_decl, int offset) >> { >> int delta = -offset; >> ! tree alias = target_decl; >> >> TREE_ADDRESSABLE(target_decl) = 1; >> TREE_USED(target_decl) = 1; >> #if D_GCC_VER >= 34 >> DECL_VISIBILITY (thunk_decl) = DECL_VISIBILITY (target_decl); >> ! #ifdef ASM_OUTPUT_DEF >> if (targetm.have_named_sections) >> { >> resolve_unique_section (target_decl, 0, flag_function_sections); >> --- 1844,1866 ---- >> IRState::outputThunk(tree thunk_decl, tree target_decl, int offset) >> { >> int delta = -offset; >> ! tree alias; >> ! #if D_GCC_VER >= 34 >> ! #ifdef ASM_OUTPUT_DEF >> ! alias = make_alias_for_thunk(target_decl); >> ! #else >> ! alias = target_decl; >> ! #endif >> ! #else >> ! alias = target_decl; >> ! #endif >> >> TREE_ADDRESSABLE(target_decl) = 1; >> TREE_USED(target_decl) = 1; >> #if D_GCC_VER >= 34 >> DECL_VISIBILITY (thunk_decl) = DECL_VISIBILITY (target_decl); >> ! #if defined (ASM_OUTPUT_DEF) \ >> ! && !defined (TARGET_IS_PE_COFF) >> if (targetm.have_named_sections) >> { >> resolve_unique_section (target_decl, 0, flag_function_sections); > > > Maybe this is the problem here: > ! && !defined (TARGET_IS_PE_COFF) > > > Is TARGET_IS_PE_COFF defined for Cygwin? Yes it is: #define TARGET_IS_PE_COFF 1 Is this wrong in the d-codegen source? I'kll try what changes if I include Cygwin: ! #if defined (ASM_OUTPUT_DEF) \ ! && (!defined (TARGET_IS_PE_COFF) && !defined(__CYGWIN__)) Gerrit -- 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/