* [PATCH] hwasan: Always set target_hwasan_flags
@ 2024-01-18 15:13 H.J. Lu <>
0 siblings, 0 replies; only message in thread
From: H.J. Lu <> @ 2024-01-18 15:13 UTC (permalink / raw)
To: gcc-patches
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 ""
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-18 15:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 15:13 [PATCH] hwasan: Always set target_hwasan_flags H.J. Lu <>
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).