One-line tweak for old-dejagnu.exp
Zack Weinberg
zack@wolery.cumb.org
Thu Jul 20 11:03:00 GMT 2000
The check for a compiler crash greps specifically for
"Internal compiler error" and will therefore miss gcc.c's
"Internal error: segmentation fault".
I don't believe this problem is triggered anywhere in the
current sources, but it is triggered by some experimental
patches in my tree.
Applied under obvious bugfix rule.
zw
* lib/old-dejagnu.exp: Check for both "Internal compiler error"
and "Internal error".
===================================================================
Index: testsuite/lib/old-dejagnu.exp
--- testsuite/lib/old-dejagnu.exp 1998/12/16 22:24:29 1.16
+++ testsuite/lib/old-dejagnu.exp 2000/07/20 18:01:14
@@ -425,7 +425,7 @@ proc old-dejagnu { compiler prog name cf
# Delete things like "ld.so: warning" messages.
set comp_output [prune_warnings $comp_output]
- if [string match "*Internal compiler error*" $comp_output] then {
+ if [regexp "Internal (compiler )?error" $comp_output] then {
if $expect_crash then {
setup_xfail "*-*-*"
}
More information about the Gcc-patches
mailing list