Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010727115745.023f0a90@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 27 Jul 2001 11:58:17 -0400 To: srk AT sanger DOT ac DOT uk, cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Strange bug in C pre-processor - cygwin 1.0 In-Reply-To: <200107271536.f6RFarQ28343@mailsrv1.sanger.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:56 PM 7/27/2001, srk AT sanger DOT ac DOT uk wrote: >I've just encountered a very strange bug in the C pre-processor in cygwin 1.0 (the >cdrom version.) > >The bug manifests itself as the pre-processor just ignoring a subset of the >#include statements in the source file. Exactly which #includes will be ignored >is variable - two successive compiles of the same source file will cause different >include files to be ignored. Obviously, dropping random include files leads to >very odd diagnostics from the compiler but it's easy to see what is happening using the >-E flag to just run the precprocessor. That is enough to show the bug. > >What seems to provoke this bug is a very long (>100 lines) single C comment at the >start of the file. The presence of that is what distinguished the broken source file from >all the others which compile OK. When I split the comment into three, the problem >went away. > >Environment: > >cygwin 1.0 >NT 4.0 SP3 > >I'm happy to send someone enough stuff to re-produce this if needed. (The code >I'm trying to compile is all GPL). Can you reproduce it with the current net release? Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/