* lib/gcc-defs.exp (tool_check_compile): Ditto.
* lib/fortran-torture.exp (fortran-torture-compile,
fortran-torture-execute): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114445
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-06-06 Janis Johnson <janis187@us.ibm.com>
+
+ * lib/gcc-dg.exp (gcc-dg-test-1): Detect and report ICE.
+ * lib/gcc-defs.exp (tool_check_compile): Ditto.
+ * lib/fortran-torture.exp (fortran-torture-compile,
+ fortran-torture-execute): Ditto.
+
2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
PR target/27842
return
}
+ if [string match "*internal compiler error*" $comp_output] then {
+ gfortran_fail $testcase "$option (internal compiler error)"
+ catch { remote_file build delete $output }
+ return
+ }
+
# We shouldn't get these because of -w, but just in case.
if [string match "*95*:*warning:*" $comp_output] then {
warning "$testcase: (with warnings) $option"
catch { remote_file build delete $executable }
continue
}
+
+ if [string match "*internal compiler error*" $comp_output] then {
+ gfortran_fail $testcase "$option (internal compiler error)"
+ catch { remote_file build delete $executable }
+ continue
+ }
# We shouldn't get these because of -w, but just in case.
if [string match "*95*:*warning:*" $comp_output] then {
return 0
}
+ if [string match "*internal compiler error*" $gcc_output] then {
+ ${tool}_fail $testcase "$option (internal compiler error)"
+ return 0
+ }
+
# We shouldn't get these because of -w, but just in case.
if [string match "*cc:*warning:*" $gcc_output] then {
warning "$testcase: (with warnings) $option"
set comp_output [$target_compile "$prog" "$output_file" "$compile_type" $options]
+ # Look for an internal compiler error, which sometimes masks the fact
+ # that we didn't get an expected error message. An ICE always fails,
+ # there's no way to XFAIL it.
+ if [string match "*internal compiler error*" $comp_output] {
+ upvar 2 name name
+ fail "$name (internal compiler error)"
+ }
+
if { $do_what == "repo" } {
set object_file "$output_file"
set output_file "[file rootname [file tail $prog]].exe"