From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65988: 30.0.50; Emacs and -O3 compiler optimization Date: Fri, 15 Sep 2023 14:29:38 +0300 Message-ID: <83o7i3k731.fsf@gnu.org> References: <86bke36bab.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65988-done@debbugs.gnu.org To: Arash Esbati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 15 13:31:48 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qh735-000AN4-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Sep 2023 13:31:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qh72f-00056I-CR; Fri, 15 Sep 2023 07:31:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh72M-00052o-Ja for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 07:31:06 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qh72G-0000iI-Dg for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 07:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qh72M-00026h-Jw for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 07:31:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Sep 2023 11:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65988 X-GNU-PR-Package: emacs Mail-Followup-To: 65988@debbugs.gnu.org, eliz@gnu.org, arash@gnu.org Original-Received: via spool by 65988-done@debbugs.gnu.org id=D65988.169477740330851 (code D ref 65988); Fri, 15 Sep 2023 11:31:02 +0000 Original-Received: (at 65988-done) by debbugs.gnu.org; 15 Sep 2023 11:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:42266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh71O-00080v-L7 for submit@debbugs.gnu.org; Fri, 15 Sep 2023 07:30:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh71L-0007zp-HN for 65988-done@debbugs.gnu.org; Fri, 15 Sep 2023 07:30:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh719-00008e-MD for 65988-done@debbugs.gnu.org; Fri, 15 Sep 2023 07:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tfIBVrnKrAda/Z/4fLrIPHniIy6ABlW6HtaCVxFLOBo=; b=F/H6r5btjcGd hDEN1xE1qKEiE0D9p7FLPW8mjjyqsqJ7ofHXKjfZYp6PzGrpfj37YfjUOKlWVa8o+XGDIEQctDC0B sDXq3+yBIPdsHIhGFy8ereG7NK6BQcuePh9SBqIO7Aq2zMVsX/Cjolk43oEeO0H2TGlcdGN2+Q4ft yv8SbY3SfmNxF9a4wENmS/J6/juDiZu+Ivu/Ddl7Pfby7o9eoRo3wqJMaJbrKwtEs/ZwNWm79UFcS nTolohWgXbJlOBMXoX9W5vZXggxl+F5KxJymNOFSztBIihEzk+o0oqSYdS0ikTfmzkEikuiUkKBA1 H/bCeSFiQfxzGJJvZpWtgA==; In-Reply-To: <86bke36bab.fsf@gnu.org> (message from Arash Esbati on Fri, 15 Sep 2023 11:22:36 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270516 Archived-At: > From: Arash Esbati > Date: Fri, 15 Sep 2023 11:22:36 +0200 > > Presuming that the note above applies to GCC on all platforms, I suggest > to change/adjust the following example in INSTALL[2]: > > Here's an example of a 'configure' invocation, assuming a Bourne-like > shell such as Bash, which uses these variables: > > ./configure \ > CPPFLAGS='-I/foo/myinclude' LDFLAGS='-L/bar/mylib' \ > CFLAGS='-O3' LIBS='-lfoo -lbar' > > (this is all one shell command). This tells 'configure' to instruct the > preprocessor to look in the '/foo/myinclude' directory for header > files (in addition to the standard directories), instruct the linker > to look in '/bar/mylib' for libraries, pass the -O3 optimization > switch to the compiler, and link against libfoo and libbar > libraries in addition to the standard ones. > > IIRC this was the place where I picked up the -O3 switch for the script > I wrote for building Emacs. You really shouldn't treat what's in INSTALL so literally: it's just an example to illustrate how to use these switches. I changed it not to use -O3.