This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/71481] [7 regression] ICE during selftest: input.c: test_reading_source_line


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71481

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Sorry about the breakage.

As a workaround, the failing test can be disabled by commenting-out the call to
input_c_tests:

diff --git a/gcc/selftest-run-tests.c b/gcc/selftest-run-tests.c
index 934e700..c2fd7ac 100644
--- a/gcc/selftest-run-tests.c
+++ b/gcc/selftest-run-tests.c
@@ -48,10 +48,9 @@ selftest::run_tests ()
   vec_c_tests ();
   pretty_print_c_tests ();
   wide_int_cc_tests ();

   /* Mid-level data structures.  */
-  input_c_tests ();
+  //input_c_tests ();
   tree_c_tests ();
   gimple_c_tests ();
   rtl_tests_c_tests ();


Presumably this could be fixed properly by having the selftest write out some
multiline text to a named tempfile, and then read in a line in the middle of
the text.  Am investigating the best cross-platform way to open a named
tempfile.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]