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#72145: rare Emacs screwups on x86 due to GCC bug 58416 Date: Thu, 18 Jul 2024 08:14:27 +0300 Message-ID: <86y15zffik.fsf@gnu.org> References: <87ttgoygvd.fsf@yahoo.com> <555e555d-49d5-40b4-9c32-3d063032e0fd@cs.ucla.edu> <6f37e80e-6226-428c-a89d-e6fda856e32d@cs.ucla.edu> <87msmfxw29.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72145@debbugs.gnu.org, eggert@cs.ucla.edu To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 18 07:15:23 2024 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 1sUJUA-0007Zp-Oj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jul 2024 07:15:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUJTv-0001eA-CG; Thu, 18 Jul 2024 01:15:09 -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 1sUJTr-0001dR-KY for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2024 01:15:04 -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 1sUJTn-0001Lh-2X for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2024 01:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sUJTq-0000R4-JB for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2024 01:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jul 2024 05:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72145-submit@debbugs.gnu.org id=B72145.17212796801619 (code B ref 72145); Thu, 18 Jul 2024 05:15:02 +0000 Original-Received: (at 72145) by debbugs.gnu.org; 18 Jul 2024 05:14:40 +0000 Original-Received: from localhost ([127.0.0.1]:36679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJTU-0000Q0-D5 for submit@debbugs.gnu.org; Thu, 18 Jul 2024 01:14:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUJTS-0000Pn-Fa for 72145@debbugs.gnu.org; Thu, 18 Jul 2024 01:14:39 -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 1sUJTJ-0001H2-57; Thu, 18 Jul 2024 01:14:29 -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=xc8E/+o3DArx+NUoTAZxVyCcz7sJC6KqDoyUfMMI2Jc=; b=FtNZU835J4zF hdBztCDs77yL/ONpeDc2e33JNRlM8bgCVg677Bkr06H2WUea3DWOew8+nwPH+dOgS/kXpX+EY3mP+ 4lgoJDxtVMvmyAq4xyLnqII0m07bfsculYOtKtEtES5k3QZrWo7oQtea03E7PTP19Ju6n9yMT48Yi 8L9yFrAp/KKaX3JE8rAb0f8gd9z05Eb3/aDFE6Z1VNv8HDhHdhnG37uiixR6wU4r1zkcHPY28Kp6I +Eq7rEYKmqWkjsRkookdD/AqQHeVzOYkma7Xe3KpCqpa7dS+zIKoXiUG6H57enGCcWLokPjT//Skp Ej7X6tO/afRiLyNBwGTjZw==; In-Reply-To: <87msmfxw29.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) 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:288947 Archived-At: > Cc: 72145@debbugs.gnu.org > Date: Thu, 18 Jul 2024 10:39:42 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Paul Eggert writes: > > > On 2024-07-16 22:01, Paul Eggert wrote: > >> We could add an AC_RUN_IFELSE test for SSE2, though I doubt whether > >> it would affect builds significantly in practice. > > > > On second thought the rare Arch or Gentoo user could still be building > > Emacs for the Pentium III, and for such a user a run-time test on the > > build host would be a win. This can be done via the attached revised > > patch. It uses AC_LINK_IFELSE to compile and run a single program, > > instead of AC_RUN_IFELSE which (when combined with AC_COMPILE_IFELSE) > > would mean compiling two test programs and running one. > > I'm thinking of the computer where I produce binaries for Windows 9X, > which, being a Windows 98 system, probably does not support SSE2. Look at the Properties to see what kind of CPU it has. Then you can establish whether it supports SSE2. But I think the problem is not where you produce the binaries, the problem is where people will run them. On Windows, it is very frequently a completely different system, so a test on the build host is insufficient. I think builds for Windows 9X should use the 'emacs_cv_SSE2_CFLAGS=no' thing regardless of what the build host supports, because otherwise the binary will simply refuse to run on the target.