[gcc r14-8251] hwasan: Always set target_hwasan_flags

H.J. Lu hjl@gcc.gnu.org
Thu Jan 18 15:14:24 GMT 2024


https://gcc.gnu.org/g:48c8d26d771a5dcf721529b1ca91737a2eff6c13

commit r14-8251-g48c8d26d771a5dcf721529b1ca91737a2eff6c13
Author: H.J. Lu <(no_default)>
Date:   Thu Jan 18 07:11:12 2024 -0800

    hwasan: Always set target_hwasan_flags
    
    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.

Diff:
---
 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 ""


More information about the Gcc-cvs mailing list