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: 1888089 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=axF7uKs2; 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 4TG5rC6tjdz23f8 for ; Fri, 19 Jan 2024 02:14:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DCA553858C30 for ; Thu, 18 Jan 2024 15:14:17 +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-Google-Smtp-Source: AGHT+IEEQmmLd0lRz+P0GbXA7Ypdwz544Cjz2DFf1Tr6pvv6z/46Nwh261y/whfBn5DkWROayPYMvw== 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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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 ""