From patchwork Thu Jan 18 15:13:53 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: 189243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp408530dyb; Thu, 18 Jan 2024 07:14:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2+Bd0uNYdrlmFDweBamKUGyfL6At3S5uSgyMCR7fZJEFPFrOx9GeP5IuLtTHzobyHme+f X-Received: by 2002:a05:6871:8aa:b0:210:b8ad:a87b with SMTP id r42-20020a05687108aa00b00210b8ada87bmr987194oaq.17.1705590880157; Thu, 18 Jan 2024 07:14:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705590880; cv=pass; d=google.com; s=arc-20160816; b=xikJdv0j0J8naCo7kNCALmSoPnshEofbNIZ9E3lY6Mrl+YdJCzUwUEiel1KRzHJUac HaPMhL56py49pWdz2oLD8dtYZpJ6DRgV4aKu5pV4rgQmXxAYWaeteA0yiKbQ9yhGgyhN GQM2ALqrOoL8IeNNg6vGnOZi1cJJc29VyuB5I+YhaEPckZLsNO3hQIX3VQYlXzTwMOgZ 6PzrmOYrVYqCk+PKg0qk4vlJVly7JI9DSLesYK8dDXMcCX2ySMTzFjCLYhdEOp1nS0KK x121sDZoRXTdXhAtvJLXeT9qN5IrqWBe1SsBy+CxMakBziMY7qLuWp0Y9DG27Y/rBzvS 1EDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=a+E/LjE2szaOT6gxCPAw5WPmHEu9l61vbwiXMTlnDSc=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=0jxNeNpU1Oz0wTmgtThK0AGSU9iv0lDmpG4hNRed+LvG7caDrQZTJVwd+bBE87cFwK puCy7IWdBKpiz0QdFI3g3+CRp2c1PP0HZ6OcjmQMZ+aOhFB+bM0iu6iPU46uI5R3DFV5 eaSQei2//6R5m3WJUa+9xJzPq/eanljZDl7hALAxRyNV3yWor58yTtgW1SCJv7UCe14c dihx7lok6c9exNVu7xJjNIrwHTz0lw2MECjY9ziyLay+C4KrVhT5xdDdttWuPvHrBAnK 2dqgUk99d3HUCy9dFjGTM41b2OZqso5306LFCGkZeJv/otZTTEBKqFyTng0CWNHoupro Fybw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=axF7uKs2; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f10-20020a05620a20ca00b007833d175e4asi14081870qka.694.2024.01.18.07.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:14:40 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=axF7uKs2; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D42973858C41 for ; Thu, 18 Jan 2024 15:14:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.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 53AE13858CD1 for ; Thu, 18 Jan 2024 15:13:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 53AE13858CD1 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 53AE13858CD1 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=1705590839; cv=none; b=U42tAM3eHWfcsCHvydK0dMu0JYNqxbdtnG3xVLfWZeMXDxFHnV+NnoGKYu15g0DkOh3h+lyoKhq6FF6aT2qDySMwRQAVuenDoyyYC/2zAp3KtF5P1ht5N7QgxXoRfWpN+Pqi8GnutjIgphQ3W0UzjfjVuGKqTddVx9ZLqJ4cUnU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705590839; c=relaxed/simple; bh=lxTLoK4R7uw9fGOb288ck606THj3WUSmUleN7/wdspU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=u4hELmY9DUWjIV2ISaFnc+nItuHrtMejB2z51GI1fBIc04XhFiAG1yloTXOjV24/PJYaXySEoLtxxGP9vpLLshafQQ7NorcnhhdiXt7+AKLXFQNLCnV0EQQdn+Fishq1xHYvS7v36smeOf889DNdH8AVx/pZQgUFhmmN/rdByMU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5ca1b4809b5so5467350a12.3 for ; Thu, 18 Jan 2024 07:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705590836; x=1706195636; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=a+E/LjE2szaOT6gxCPAw5WPmHEu9l61vbwiXMTlnDSc=; b=axF7uKs2VoZrLntO/QeplTCaUNwSnOhDWTn+xiRnBFFAozNmlSkbJ6177cZU3bUWwp b9+RKIkqAXoZug4W3QPGGQCvhZnZFeAp+jHpOZmsU+Yka1fKr3wJJcdl2zkh83QezJPN qq6erbXjQidS2gNB6I+7PQz/tQNvifMSSd0j32AAq3xA1i/44BWhpGQp+dbNeawdd8BI mnXoaEDlH1IQaMGMp7TGTuQnPXs645Iokdb1liMJX3e3anSusUc7VlCK9qJNTq98ADZd GBtqRXhMu+45WqQxqc694G0u25ICWvSmg8zX176mazeJ9zwlflch75udQn8RgwaoBO/E 7tzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705590836; x=1706195636; 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=a+E/LjE2szaOT6gxCPAw5WPmHEu9l61vbwiXMTlnDSc=; b=P7dKBqFzy9Dvrjg2N45tWMJ8qC+Hp26hvxUjVTSihqDzArdFX6CZ/SxcTLwIY5EpVe 7VtcapZsr1tswLY2bbLsxBNSLddw4CJn1gNh8w2CGRipPcQVA2Vawce87ifqT6k3l50r EuiJRsFbqyzqU1op/pr8Qtb20z6LzCyNT6sGeTMFI8CvBWtD7Dkut77lWi6sPBsikINT 99MR4dXf4Uyng/EVhwvXYRuJhlymnlkG2AgS3hsxPZSl8BtuQBix+rSqUjhumTdBdiI8 NrI0w2ZWrKDpZIJ04jSOb8S4aRqAt/itM/ZenfLL/gm7vxMAWpvvNVkfRsNW69Ufgx0M MMxQ== X-Gm-Message-State: AOJu0YwPU8wuUd482qwRbOY6tMc1sGbYXHDAaiyoxM5xdgk2hspPSgfd TPGht2v4fwIY4a15fg7OjUik3v0nGPKi/zcK/cgF+dXXBcK3bGpec88EmQ0h X-Received: by 2002:a17:902:edc3:b0:1d6:f0b2:9824 with SMTP id q3-20020a170902edc300b001d6f0b29824mr928001plk.7.1705590835850; Thu, 18 Jan 2024 07:13:55 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.168.9]) by smtp.gmail.com with ESMTPSA id v13-20020a170903238d00b001d5e03543dcsm1527807plh.38.2024.01.18.07.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:13:55 -0800 (PST) From: "H.J. Lu <>" X-Google-Original-From: "H.J. Lu" <(no_default)> Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id D81E67401E6 for ; Thu, 18 Jan 2024 07:13:53 -0800 (PST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] hwasan: Always set target_hwasan_flags Date: Thu, 18 Jan 2024 07:13:53 -0800 Message-ID: <20240118151353.49809-1-user@gnu-cfl-3> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3024.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_NO_USER, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788441662741874709 X-GMAIL-MSGID: 1788441662741874709 Fix the "make check" error: Running .../gcc/testsuite/gcc.dg/hwasan/hwasan.exp ... ERROR: tcl error sourcing .../gcc/testsuite/gcc.dg/hwasan/hwasan.exp. ERROR: tcl error code TCL LOOKUP VARNAME target_hwasan_flags ERROR: can't read "target_hwasan_flags": no such variable ... on non-x86-64 targets. * lib/hwasan-dg.exp (hwasan_init): Always set target_hwasan_flags. --- gcc/testsuite/lib/hwasan-dg.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/lib/hwasan-dg.exp b/gcc/testsuite/lib/hwasan-dg.exp index 76057502ee6..8d66b4db3e3 100644 --- a/gcc/testsuite/lib/hwasan-dg.exp +++ b/gcc/testsuite/lib/hwasan-dg.exp @@ -119,6 +119,8 @@ proc hwasan_init { args } { if [istarget x86_64-*-*] { set target_hwasan_flags "-mlam=u57" + } else { + set target_hwasan_flags "" } set link_flags ""