From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27181 invoked by alias); 27 Apr 2015 17:09:18 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34977 Received: (qmail 24321 invoked from network); 27 Apr 2015 17:09:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-f794b6d000001495-7b-553e6d3cfa4d Date: Mon, 27 Apr 2015 18:09:09 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] Use CC to determine if gcc is used Message-id: <20150427180909.52216530@pwslap01u.europe.root.pri> In-reply-to: <553E6A65.7010809@heiko-becker.de> References: <1430070511-9895-1-git-send-email-heirecka@exherbo.org> <20150427094742.27589aca@pwslap01u.europe.root.pri> <20150427100756.12c82959@pwslap01u.europe.root.pri> <20150427133033.GC1863@tarsus.local2> <20150427151130.022aed1d@pwslap01u.europe.root.pri> <553E65BB.6090501@heiko-becker.de> <20150427175042.51cbf6d3@pwslap01u.europe.root.pri> <553E6A65.7010809@heiko-becker.de> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsVy+t/xa7o2uXahBie7RC0ONj9kcmD0WHXw A1MAYxSXTUpqTmZZapG+XQJXxuEn79gLZnFXTN8/iaWB8T9HFyMnh4SAicSFDb9ZIGwxiQv3 1rN1MXJxCAksZZQ4/3MRO4Qzg0ni17SDUM42RolrbUfBWlgEVCWut35mBbHZBAwlpm6azQhi iwiIS5xdex6sRljAXGLSkn4wm1fAXuLWupPMIDangL7E3VsLoYb2MktMn7QDLMEPlLj69xMT xE32EjOvnGGEaBaU+DH5HtggZgEtic3bmlghbHmJzWvegvUKCahL3Li7m30Co9AsJC2zkLTM QtKygJF5FaNoamlyQXFSeq6RXnFibnFpXrpecn7uJkZI4H7dwbj0mNUhRgEORiUeXoUZtqFC rIllxZW5hxglOJiVRHgnZ9qFCvGmJFZWpRblxxeV5qQWH2KU5mBREueduet9iJBAemJJanZq akFqEUyWiYNTqoGxy0E/wTS1rsvxl+bahJgzy/+ddzI9vujF2YqY5a++XLwqW3era9VJOaNZ f1Mt5KXkFbY+5OASafxnKLDp0XYjv7kpWZnioTxXc1nfBB7S2+r/h0Nkb/aGUgHvDPEvxeyd nlPvefbMO/5Wm9P/7MZzTUeq/vT4i4l6dMUmz2U0f7lcLkXeW0WJpTgj0VCLuag4EQDOstBD WAIAAA== On Mon, 27 Apr 2015 18:57:09 +0200 Heiko Becker wrote: > On 04/27/15 18:50, Peter Stephenson wrote: > > On Mon, 27 Apr 2015 18:37:15 +0200 > > Please could you tell us what the underlying problem is (I mean that the > > first patch was trying to fix)? Then we can fix it properly. All I > > know is it fails somehow --- you said "miscompiled". If we know how we > > ought to be able to stop playing games with versions of CPP (presumably...) > > Same problem as described here: > http://www.zsh.org/mla/workers/2015/msg00211.html OK, I've seen now --- the line markers are actually in the *middle* of the output. That's not going to work... So it really is gcc-specific; I can't imagine anything else is doing anything that weird. Simply removing the line markers won't work, then. But from what I'm seeing, the following probably ought to... diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 71dd613..c2e59c9 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -28,8 +28,8 @@ hdrdeps="zshcurses.h zshterm.h" # on the option to remove them being the same. signames.c: signames1.awk signames2.awk ../config.h @SIGNAL_H@ $(AWK) -f $(sdir)/signames1.awk @SIGNAL_H@ >sigtmp.c - case "$(CPP)" in \ - gcc*) \ + case "`$(CPP) --version &1`" in \ + *"Free Software Foundation"*) \ $(CPP) -P sigtmp.c >sigtmp.out;; \ *) \ $(CPP) sigtmp.c >sigtmp.out;; \ pws