From patchwork Mon Feb 19 04:49:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 1900753 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=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GvKHvb8/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.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 4TdVTb0cr1z20Qg for ; Mon, 19 Feb 2024 15:50:25 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46137386186A for ; Mon, 19 Feb 2024 04:50:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by sourceware.org (Postfix) with ESMTPS id A6D98386183F for ; Mon, 19 Feb 2024 04:50:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6D98386183F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A6D98386183F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708318204; cv=none; b=QF7s0bKFmUv4qwzJRgfS785AfMzhXDpQQtb4Fri5rqmS/7RnM+q0liVfEH4V0wl4z7Ukykf5AfV2DmPmSdeZi8wM6Zv3A2OKk8YArKMgNoHO1uKR5DsLO3zXG6FlrcG10+MCWFx02STxtSMVLy9LaaBK+SzkRdMl0+FFE2OaN3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708318204; c=relaxed/simple; bh=ooVZUvS4NmFtgbbxG0HHItWEwcVg3lWyE5wCtErGnUs=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=uctUXLXuJqspREuWh3WdAgsGpJIjOMC/02ae5G/x86PL+twvA/DnDI8JD+w+WpD8Fj1Tazn8st0PAsVOHe9rgS4fXaTefE2NiRUGsIQFZ1+HJ6ZO+CKJ4NMbfL+986dio4e5l4m1u9p1zsm8DRuWte4I4qNWjLBiPHbucUI6haM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708318203; x=1739854203; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ooVZUvS4NmFtgbbxG0HHItWEwcVg3lWyE5wCtErGnUs=; b=GvKHvb8/NB5jqnfR9wpwkRjQpKhpvB1fN3XaPV/AOjQzvlO6dsjGwaMf u44gRkgBgk6l4hAHNjabIg/FMNEvFd997NkSVttqIZGCQku28WgcVlNTm vMdqo3Iok5jUzpI7MQIWI5Z5GhNbRYf5ozgNhONOscnCMyRALyfyG0h7f UaLVibRnBK3+4WVP9S4Cuyx/shiCqo6Qnryt4LzXQ5f5m4eQBstJRXNc8 x4dzBuXl4PCOS66JUm3GwkMi2OesW0oJE8RzlJLLrB0H0XQHxuM6qFVwb jq7kOCzEhCfCvW2PDaJ5RkBq3C1ELLJEtkGIFqdNM25RcgWFENyCUSoHK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="2819487" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="2819487" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2024 20:50:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="4343577" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmviesa010.fm.intel.com with ESMTP; 18 Feb 2024 20:49:59 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 5722A1006FE4; Mon, 19 Feb 2024 12:49:58 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH] Fix testcase for platform without gnu/stubs-x32.h Date: Mon, 19 Feb 2024 12:49:58 +0800 Message-Id: <20240219044958.3724987-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org target maybe_x32 doesn't check if platform has gnu/stubs-x32.h, but it's included by stdint.h in the testcase. Adjust testcase: remove stdint.h, use 'typedef long long int64_t' instead. Commit as an obvious patch. gcc/testsuite/ChangeLog: PR target/113711 * gcc.target/i386/apx-ndd-x32-1.c: Adjust testcase. --- gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c b/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c index 4280d400458..74197dbc641 100644 --- a/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c +++ b/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c @@ -3,7 +3,7 @@ /* { dg-require-effective-target maybe_x32 } */ /* { dg-options "-mapxf -O2 -mx32" } */ -#include +typedef long long int64_t; #define FOO(TYPE, OP_NAME, OP, IMM) \ TYPE \