| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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: | <42A5C081.9090609@familiehaase.de> |
| Date: | Tue, 07 Jun 2005 17:42:57 +0200 |
| From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
| 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: | David Friedman <d3rdclsmail_a AT t_earthlink_d DOT t_net> |
| CC: | cygwin AT cygwin DOT com |
| 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> <42A58218 DOT 7040103 AT familiehaase DOT de> <d84abs$2g8u$1 AT digitaldaemon DOT com> |
| In-Reply-To: | <d84abs$2g8u$1@digitaldaemon.com> |
| X-IsSubscribed: | yes |
David Friedman wrote: >>> 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 > > > That check for TARGET_IS_PE_COFF is necessary. Without it, there is a > very nasty code gen bug that won't show up until you run the code. > > This is probably a better test: > > --- d-codegen.cc.orig Tue Jun 7 14:10:57 2005 > +++ d-codegen.cc Tue Jun 7 14:11:55 2005 > @@ -1757,7 +1757,7 @@ > char buf[256]; > > #if defined (TARGET_IS_PE_COFF) > - if (DECL_ONE_ONLY (function)) > + // if (DECL_ONE_ONLY (function)) > return function; > #endif > > It might break -fpic code generation again, though. I won't be able to > test it until later today, but you can try it yourself by adding "-fpic" > to the DFLAGS in Phobos Makefile. -fpic is totally unsupported on Windows because on Windows everything is position independat anyway. I'll try this now. See you later, 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |