X-Spam-Check-By: sourceware.org Date: Wed, 31 Jan 2007 08:13:37 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Eliminating -mno-cygwin from gcc? Message-ID: <20070131131337.GA17256@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 When I was maintaining cygwin's gcc, I often thought about eliminating -mno-cygwin and just providing a pure mingw cross compiler in the distribution. I really don't know why it wasn't done that way to begin with. I have vague recollections of arguing for this when -mno-cygwin was first introduced by Geoff Noer but apparently I wasn't very persuasive. I know that this will probably be another "Death of Cygwin predicted" experience but I really can't see any benefit in the current arrangement. The code which handles -mno-cygwin in gcc (which, for the most part, I wrote) is ugly and non-foolproof and binutils support is not great. How about if we eliminate -mno-cygwin from future releases and either provide our own mingw cross-tools or wrap the offerings from mingw.org? This would mean that instead of saying 'gcc -mno-cygwin', you'd say: 'i686-mingw-gcc' which would, I know, make a few computers spontaneously self-destruct however, I really don't think that the -mno-cygwin belongs in gcc. No other port of gcc has anything like this. If we REALLY wanted to preserve -mno-cygwin, we could do so as a shell script wrapper for gcc but, personally, I think I'd rather just tell people to use the cross-compiler. cgf -- 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/