https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124641
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd try also
--- /usr/share/dejagnu/utils.exp 2025-07-23 02:00:00.000000000 +0200
+++ /usr/share/dejagnu/utils.exp 2026-03-27 08:06:19.373148813 +0100
@@ -219,6 +219,9 @@ proc grep { args } {
set i 0
set fd [open $file r]
+ if {[package vsatisfies [package provide Tcl] 9.0-]} {
+ fconfigure $fd -profile replace
+ }
while { [gets $fd cur_line] >= 0 } {
incr i
if {[regexp -- $pattern $cur_line match]} {
and likely same thing in a couple of gcc *.exp files, the question is what is
the minimum, I bet we don't need it e.g. for scanning the assembler because
assembler should hopefully be ASCII, probably not needed when reading
tree/RTL/IPA dumps either but when reading the testcases in the testsuite (so
exactly the searching for directives in the testcases etc.).