From patchwork Fri May 24 23:42:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1939190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=iCPwwn5A; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VmM6557dfz20PT for ; Sat, 25 May 2024 09:42:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F31743858C41 for ; Fri, 24 May 2024 23:42:35 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id D136B3858403 for ; Fri, 24 May 2024 23:42:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D136B3858403 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D136B3858403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716594136; cv=none; b=nAhZHmwa/pjTxrKRErAlJVOypPAkP3q9toKIvPXaKdYhkdKzjvi3+p93PA+Rfd57HTcSniNv1mTYjoXr6LuatcqQxxNjp8v7Vhlw/1FmWxQG2+xKeIuSVeaJJd3RPxEHVBqWkmwe/ZAc0r3gv9FMzBtnsfJxR9a1xefXybvvR3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716594136; c=relaxed/simple; bh=eygOFb7RHjmsGDXYhJR+P0UnxVDhSavxkYylVI6SokI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bgvipXRpaJH4E96NduX/iAcMntkRA5AelSEdfc8AqLnoeaf8F1mJ8nl4pqnLYufDdGBSrpF/E7CobBVd4/r/zG/iUZs4RoXmCyD6/ZwMD0tCURX+qQhjss5em4/rymizkJRvNurwKqvm8WSq+NhXL97eNqMuRgBVyS4AGdjs7Sw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-68187c5534cso962468a12.0 for ; Fri, 24 May 2024 16:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716594133; x=1717198933; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=n/YqsKf6FeUNJRXrPJZZGGkhOo5p3p3m3LRZDlHuhqU=; b=iCPwwn5A91xS708YHbGIPl4vgZ+fJ1zrD2y2usqEAwxWN2O3LZNhqxccXUOKcKD9RO ckD6NfHn3K/TM7ZBlbTLSQ7AZcuiqzfVlCweS9k6Qcl/7MmdHFPPWOLJgs5KH1NmmaTY oqxxQfQP8Frh1AjhxX86MgqeDhtGPwS8hOit+CLCQtaW/JD62ry+6CzvSNyS6slOVYkN SsnTlNTk9PdmYjCXOerfhtJE8oILk+JIFmiAof+ijHniA6Rruj0ysdR35dQuCasVAYb/ nrJWOmOv87lOYc/X1m6hpQqcEE+Jkpu3XxEXLJfWBht0NXHhZtcj5rr+ByRDz2PEmPuO D86g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716594133; x=1717198933; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n/YqsKf6FeUNJRXrPJZZGGkhOo5p3p3m3LRZDlHuhqU=; b=CEOg1pLCUKHvTBtOr/vL7u0tMIXHY3LSBBJtvjfZStHDx/2w+XdieZ09vIa1vW/yRU xu1YZcT3f9lOmP2Y6DoK7aqBDeQ4XKHEgJd/fIqDHfa5WE0YbGIsxfxTe9mUxTmpFs+A Q3t79HIKUZUB6X4VWRJr3DHA8DZ1GwiXyI2YL0J6ry9KZbpgDA9aqChaCbzM1kOA5gni CkZDw28VjsBpIioF3Mnz10ldn/YPS7P9poBCcSj1BCgDBZ8TmVIXG9kruFxo0wZyp1ik g+yR63xLKLddUcy+WbHaevaSrDbLZYTu26Lpv/0NdwQpgzVTcJNlgtF1hQyv6jAamxB9 FQpA== X-Gm-Message-State: AOJu0YwB9xipo4JS0sj728GxmSJhni8wG2YKbtXul6OvZkyj3L2EdOW4 Lvb1Q3vMoCYG51OF6VrXmA6T5tFBMgYzemL5DhSWonSotl1qHyy0tIlwDQ== X-Google-Smtp-Source: AGHT+IFSwPBuoOCxveDHHNZNC0/p1MHg1IwOozLALgKS7/iqxHSLOErdahGU1yTHLAB3967qblXD7g== X-Received: by 2002:a17:902:650f:b0:1ec:585e:5363 with SMTP id d9443c01a7336-1f448a3742dmr33533775ad.29.1716594133407; Fri, 24 May 2024 16:42:13 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.59.129.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c9afba1sm19171995ad.246.2024.05.24.16.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 16:42:13 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id DB6167407BD for ; Fri, 24 May 2024 16:42:11 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [COMMITTED] Revert "Test fscanf of long double without " Date: Fri, 24 May 2024 16:42:11 -0700 Message-ID: <20240524234211.1400195-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3021.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org This reverts commit 30a745450e01e4c6f484dc691c16a54a6ea72288. On ppc64le, without , vfscanf is used and with __isoc23_vfscanfieee128 is used. I am reverting this since it doesn't work on all targets. --- stdio-common/Makefile | 1 - stdio-common/test-fscanf.c | 37 ---------------------------------- stdio-common/test-fscanf.input | 1 - 3 files changed, 39 deletions(-) delete mode 100644 stdio-common/test-fscanf.c delete mode 100644 stdio-common/test-fscanf.input diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 274bece0a2..6bc972af1a 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -193,7 +193,6 @@ tests := \ scanf18 \ scanf19 \ temptest \ - test-fscanf \ test-fseek \ test-fwrite \ test-popen \ diff --git a/stdio-common/test-fscanf.c b/stdio-common/test-fscanf.c deleted file mode 100644 index f2c4250b51..0000000000 --- a/stdio-common/test-fscanf.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Test fscanf of long double without . - Copyright (C) 2024 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -struct FILE; -extern struct FILE *stdin; -extern int fscanf (struct FILE *, const char *, ...); - -int -main (void) -{ - int n, i; - long double x; - char name[50]; - n = fscanf (stdin, "%d%Lf%s", &i, &x, name); - - if (n != 3 || i != 25 || x != 24.5 || strcmp (name, "thompson")) - return 1; - - return 0; -} diff --git a/stdio-common/test-fscanf.input b/stdio-common/test-fscanf.input deleted file mode 100644 index 69322cc51a..0000000000 --- a/stdio-common/test-fscanf.input +++ /dev/null @@ -1 +0,0 @@ -25 24.5 thompson