From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2348 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general,gmane.comp.compilers.pcc Subject: Re: Current pcc does not understand #pragma after whitespace Date: Wed, 28 Nov 2012 11:06:10 +0100 Message-ID: <20121128100610.GI10895@port70.net> References: <20121127223758.485b5083.idunham@lavabit.com> 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 1354097188 1197 80.91.229.3 (28 Nov 2012 10:06:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2012 10:06:28 +0000 (UTC) Cc: pcc-list@ludd.ltu.se To: musl@lists.openwall.com Original-X-From: musl-return-2349-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 28 11:06:39 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 1TdeXO-0001SS-Dm for gllmg-musl@plane.gmane.org; Wed, 28 Nov 2012 11:06:38 +0100 Original-Received: (qmail 5744 invoked by uid 550); 28 Nov 2012 10:06:22 -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 5736 invoked from network); 28 Nov 2012 10:06:22 -0000 Content-Disposition: inline In-Reply-To: <20121127223758.485b5083.idunham@lavabit.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2348 gmane.comp.compilers.pcc:2589 Archived-At: * 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 guess we can remove the pragma from feupdateenv as there is no fp operations (or add it to the other fe*.c files as well for consistency)