From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cg Newsgroups: gmane.emacs.devel Subject: Re: Using stpcpy Date: Sat, 27 Dec 2014 19:57:07 +0800 Message-ID: References: <549849A7.3070208@yandex.ru> <54991006.8030208@cs.ucla.edu> <54994677.9080608@yandex.ru> <549C0242.3010402@cs.ucla.edu> <549C4C7C.2070001@yandex.ru> <549CA168.8050002@cs.ucla.edu> <83zjaaksua.fsf@gnu.org> <83tx0hlen1.fsf@gnu.org> Reply-To: chengang31@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1419681422 30727 80.91.229.3 (27 Dec 2014 11:57:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Dec 2014 11:57:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 27 12:56:55 2014 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 1Y4pzK-0005vx-MP for ged-emacs-devel@m.gmane.org; Sat, 27 Dec 2014 12:56:54 +0100 Original-Received: from localhost ([::1]:55709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4pzJ-0008Tr-Sc for ged-emacs-devel@m.gmane.org; Sat, 27 Dec 2014 06:56:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4pzH-0008Tm-2v for emacs-devel@gnu.org; Sat, 27 Dec 2014 06:56:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4pzD-0003ie-Tj for emacs-devel@gnu.org; Sat, 27 Dec 2014 06:56:51 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:53997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4pzD-0003iW-Nc for emacs-devel@gnu.org; Sat, 27 Dec 2014 06:56:47 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y4pzA-0005qA-Sd for emacs-devel@gnu.org; Sat, 27 Dec 2014 12:56:45 +0100 Original-Received: from 121.235.165.105 ([121.235.165.105]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Dec 2014 12:56:44 +0100 Original-Received: from chengang31 by 121.235.165.105 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Dec 2014 12:56:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 121.235.165.105 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <83tx0hlen1.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180712 Archived-At: On 12/27/2014 3:45 PM, Eli Zaretskii wrote: > > Sorry, I don't understand this: there's no call to stpcpy on line 350 > of ntlib.c, or anywhere else in ntlib.c, actually. That line calls > Yes, I was confused by the error message too, and found ntlib.c didin't use stpcpy at all. It looks like it has something to do with compiler optimization. So I tried to use different optimization flags, and this error only happens when -O2 or -Ofast is used as CFLAGS: ./autogen.sh export CFLASG=-O0 # no error #export CFLASG=-O1 # no error #export CFLASG=-O2 # error! #export CFLASG=-Ofast # error! ./confgure make I am using msys2.