From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2363 Path: news.gmane.org!not-for-mail From: Iain Hibbert Newsgroups: gmane.linux.lib.musl.general,gmane.comp.compilers.pcc Subject: Re: Current pcc does not understand #pragma after whitespace Date: Thu, 29 Nov 2012 10:01:24 +0000 (GMT) Message-ID: References: <20121127223758.485b5083.idunham@lavabit.com> <20121128100610.GI10895@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1354185417 12094 80.91.229.3 (29 Nov 2012 10:36:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2012 10:36:57 +0000 (UTC) Cc: musl@lists.openwall.com, pcc-list@ludd.ltu.se To: Szabolcs Nagy Original-X-From: musl-return-2364-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 29 11:37:09 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Te1US-0000yp-7X for gllmg-musl@plane.gmane.org; Thu, 29 Nov 2012 11:37:08 +0100 Original-Received: (qmail 24140 invoked by uid 550); 29 Nov 2012 10:36:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29991 invoked from network); 29 Nov 2012 10:01:32 -0000 In-Reply-To: <20121128100610.GI10895@port70.net> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) Xref: news.gmane.org gmane.linux.lib.musl.general:2363 gmane.comp.compilers.pcc:2590 Archived-At: On Wed, 28 Nov 2012, Szabolcs Nagy wrote: > * Isaac Dunham [2012-11-27 22:37:58 -0800]: > > I tried building musl (0.9.8) with pcc (the Nov. 9 version) and found that it failed to build. After a bit of testing, I discovered that > > #pragma ... /*in src/fenv/feupdateenv.c */ > > was breaking the buld because of the whitespace preceding the #pragma directive. > > I've attached a workaround in musl. > > the way it is done is directly copy pasted from > the example present in the standard > > http://port70.net/~nsz/c/c11/n1570.html#7.6.1p3 > > so i think pcc should be fixed I committed a fix for this iain * I had previously thought about investigating whether it would be better to teach ccom to understand _Pragma() instead of #pragma, and converting them the other way. It may be better, my thought went, for line count matching since each _Pragma() converted to #pragma requires extra lines inserted to the cpp output..