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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Or maybe print something like:

BEGIN QUOTE

/home/jwakely/src/gcc/gcc/gcc/selftest.c:305: test_locate_file: FAIL: unable to
open file: ./example.txt

A gcc selftest has failed.

Investigation of the source location above may reveal the problem.  

Alternatively, you can disable selftests by doing [add method here], although
the selftest failure may be a symptom of a deeper problem with your
configuration.

The backtrace leading to the failure was:

cc1: internal compiler error: in fail_formatted, at selftest.c:62
0x13dcde6 selftest::fail_formatted(selftest::location const&, char const*, ...)
        /home/jwakely/src/gcc/gcc/gcc/selftest.c:62
0x13dd157 selftest::read_file(selftest::location const&, char const*)
        /home/jwakely/src/gcc/gcc/gcc/selftest.c:164
0x13dd48f test_locate_file
        /home/jwakely/src/gcc/gcc/gcc/selftest.c:305
0x13dd48f selftest::selftest_c_tests()
        /home/jwakely/src/gcc/gcc/gcc/selftest.c:320
0x138a47b selftest::run_tests()
        /home/jwakely/src/gcc/gcc/gcc/selftest-run-tests.c:55
0xbe37e2 toplev::run_self_tests()
        /home/jwakely/src/gcc/gcc/gcc/toplev.c:2075

If you think this is a bug in gcc itself, please submit a full bug report.
Please include the complete backtrace with any bug report, and
details of your configuration, and the command line.

See <https://gcc.gnu.org/bugs/> for instructions.

END QUOTE

Reply via email to