From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yasushi SHOJI Newsgroups: gmane.emacs.devel Subject: Re: Certain numbers of special forms cause changing behaviour on function calls in --batch Date: Sun, 10 Jul 2016 20:13:46 +0900 Message-ID: References: <8760stvwzp.fsf@web.de> <834m8cvu9p.fsf@gnu.org> <87h9cbpw61.fsf@web.de> <83wpl7v1sg.fsf@gnu.org> <87a8i2dfe3.fsf@web.de> <83poqyvh58.fsf@gnu.org> <87shvu1ixp.fsf@web.de> <8360spvn6i.fsf@gnu.org> <8760sjn5me.fsf@web.de> <871t37n51y.fsf@web.de> <8337nmon4l.fsf@gnu.org> <87mvluomaz.fsf@web.de> <83mvlun6zc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113785443224550537462145 X-Trace: ger.gmane.org 1468149241 27408 80.91.229.3 (10 Jul 2016 11:14:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 11:14:01 +0000 (UTC) Cc: Michael Heerdegen , me@wilfred.me.uk, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 13:14:00 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMCgR-0008QS-MF for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 13:13:59 +0200 Original-Received: from localhost ([::1]:54149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMCgQ-00079I-KS for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 07:13:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMCgK-00078y-DD for emacs-devel@gnu.org; Sun, 10 Jul 2016 07:13:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMCgI-0004qt-E6 for emacs-devel@gnu.org; Sun, 10 Jul 2016 07:13:51 -0400 Original-Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:33772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMCgG-0004qX-2V; Sun, 10 Jul 2016 07:13:48 -0400 Original-Received: by mail-qt0-x22b.google.com with SMTP id w38so2150631qtb.0; Sun, 10 Jul 2016 04:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mORlnTZYoMbkmLDEj1PxbnJFo2bxT5754Kkm/WXK/BM=; b=ohfb2f82WoSIqvj95dGwVPwTMME5cQY8oYSBIXRNfm+0V7sbPslkX5W4e+uquNZ9Ks q+ULNZXyyiyHpFQ1xR7fNWJ4WKx2+AX9N56t52sL1PXF3sUbP7tVu2gRcAfrBnowx8q2 qW7FChrYJRbUfhb/0fSBODOCiy8y9cnj+1T9EG5PpFCtZpkVBOeNEih7d5Q9n8cFTtCH HrBWW1ZUZfu1PebgkI6xC1Zr1bdgySA8xkQymOq3a4W2bV2tXzCbAAXAGzXbyAn92Nqs u4M2g0YVD1e+ofs3DNs7IXSnxD/vhrP/sutRHecJKk16wgo87H4FUiRTbpZBwCgJDJg9 bRYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mORlnTZYoMbkmLDEj1PxbnJFo2bxT5754Kkm/WXK/BM=; b=AwMYo43pUQqKo5WHTozLIDRu5+3/IA8Z0vOfN2Am95EmamugA+7tHSJz3Bwlw9phOc ADSItaUoI3bNvU5BvLuK/nHiGQfAU9gIzdbDWXAEtAcWQ7wnsPgmXP3Jvf4rEz9moJJq heWRRl11lrqyqsWjAKXPkgbw9QAkykYlxJS1DpX5mYfoMg6/k8OkiBy34bd5+FCPWXZZ xWrwnDJFAThu9ZqF7UAo+PsrR6eb6X1duxjFKiCWuzwmbb8tqA/mCK2hxHFpmnoRcPxG a5YbOVTutIsjNHJSOCLfpJLzVlEZf7VPNfzw3OU0U8vvuUhRCHW+BqL5l3+5a3iaqvTG 5Pmw== X-Gm-Message-State: ALyK8tI2q/HOkSFzaqOZCeY/CpLx2JblpgUxemI7bNuTmqfnrisGkJRXcW2RIcOrr+FJyCrVXffWremBvoNkgw== X-Received: by 10.200.50.20 with SMTP id x20mr1344144qta.71.1468149227724; Sun, 10 Jul 2016 04:13:47 -0700 (PDT) Original-Received: by 10.55.162.85 with HTTP; Sun, 10 Jul 2016 04:13:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205488 Archived-At: --001a113785443224550537462145 Content-Type: text/plain; charset=UTF-8 On Sun, Jul 10, 2016 at 7:34 PM, Yasushi SHOJI wrote: > On Thu, Jul 7, 2016 at 12:04 AM, Eli Zaretskii wrote: > > So more data points might help, yes. > > I can reproduce this bug on my Debian Sid system with > gcc version 5.4.0 20160609 (Debian 5.4.0-6). I should have tested with different compilers before posting the previous comment since Eli predicted that a bad compiler is a problem. Yes, the results differ depending on the compiler you use. Here is the results: - All test is done with 7bf54d0 + the previous patch applied - no option to configure except specifying compiler with CC= | gcc 6 | good | 6.1.1 20160705 (Debian 6.1.1-9) | | gcc 5 | bad | 5.4.0 20160609 (Debian 5.4.0-6) | | gcc 4.9 | good | 4.9.3 (Debian 4.9.3-14) | | gcc 4.8 | good | 4.8.5 (Debian 4.8.5-4) | - good: returns 10 - bad: returns 20 So the current default compiler on Debian Sid is the one to create a bad binary with the current source code. Let me know if you need any other info. -- yashi --001a113785443224550537462145 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sun, Jul 10, 2016 at 7:34 PM, Yasushi SH= OJI <yasushi.shoji@gmail.com<= /a>> wrote:
> > So more data points might help, yes.
>
&g= t; I can reproduce this bug on my Debian Sid system with
> gcc= version 5.4.0 20160609 (Debian 5.4.0-6).

I should= have tested with different compilers before posting the
previous= comment since Eli predicted that a bad compiler is a problem.
Yes, the results differ depending on the compiler you use.

Here is the results:

=C2=A0-= All test is done with 7bf54d0 + the previous patch applied
=C2= =A0- no option to configure except specifying compiler with CC=3D

| gcc 6 =C2=A0 | good | 6.1.1 20160705 (Debian 6.1.1-9) |
| gcc 5 =C2=A0 | bad =C2=A0| 5.4.0 20160609 (Debian 5.4.0-6) |
| gcc 4.9 | good | 4.9.3 (Debian 4.9.3-14) =C2=A0 =C2=A0 =C2=A0 =C2= =A0 |
| gcc 4.8 | good | 4.8.5 (Debian 4.8.5-4) =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|

=C2=A0 - good: returns 10
=
=C2=A0 - bad: returns 20

So the current defau= lt compiler on Debian Sid is the one to create a
bad binary with = the current source code.

Let me know if you need a= ny other info.
--=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0yashi

--001a113785443224550537462145--