https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107722
--- Comment #2 from anlauf at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #1) > This might fix/improve that: > diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc > index 22f7b0b6d6e..5764ce672ec 100644 > --- a/gcc/diagnostic.cc > +++ b/gcc/diagnostic.cc > @@ -470,7 +470,7 @@ diagnostic_get_location_text (diagnostic_context > *context, > const char *file = s.file ? s.file : progname; > int line = 0; > int col = -1; > - if (strcmp (file, N_("<built-in>"))) > + if (strcmp (file, special_fname_builtin ())) > { > line = s.line; > if (context->show_column) > @@ -2593,7 +2593,7 @@ test_diagnostic_get_location_text () > const char *old_progname = progname; > progname = "PROGNAME"; > assert_location_text ("PROGNAME:", NULL, 0, 0, true); > - assert_location_text ("<built-in>:", "<built-in>", 42, 10, true); > + assert_location_text ("<built-in>:", special_fname_builtin(), 42, 10, > true); > assert_location_text ("foo.c:42:10:", "foo.c", 42, 10, true); > assert_location_text ("foo.c:42:9:", "foo.c", 42, 10, true, 0); > assert_location_text ("foo.c:42:1010:", "foo.c", 42, 10, true, 1001); > > > But I am not 100% sure it is correct .... Sorry, the first hunk fails, as special_fname_builtin () is already there. The second part applies, but then I get: /work/gnu/git/build-trunk/./gcc/xgcc -B/work/gnu/git/build-trunk/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc-trunk/gcc/testsuite/selftests ../../gcc-trunk/gcc/diagnostic.cc:2584: assert_location_text: FAIL: ASSERT_STREQ (expected_loc_text, actual_loc_text) val1="<built-in>:" val2="<eingebaut>:" PROGNAME: interner Compiler-Fehler: in fail_formatted, bei selftest.cc:63 0x1f1ccee selftest::fail_formatted(selftest::location const&, char const*, ...) ../../gcc-trunk/gcc/selftest.cc:63 0x1f1cd91 selftest::assert_streq(selftest::location const&, char const*, char const*, char const*, char const*) ../../gcc-trunk/gcc/selftest.cc:92 0x1f22806 assert_location_text ../../gcc-trunk/gcc/diagnostic.cc:2584 0x1f24b81 test_diagnostic_get_location_text ../../gcc-trunk/gcc/diagnostic.cc:2596 0x1f24b81 selftest::c_diagnostic_cc_tests() ../../gcc-trunk/gcc/diagnostic.cc:2681 0x99ea97 selftest::c_family_tests() ../../gcc-trunk/gcc/c-family/c-common.cc:9146 0x1e46873 selftest::run_tests() ../../gcc-trunk/gcc/selftest-run-tests.cc:119 0xf29e69 toplev::run_self_tests() ../../gcc-trunk/gcc/toplev.cc:2184 Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein; inclusive vorverarbeitetem Quellcode (siehe -freport-bug). Bitte fügen Sie jedem Fehlerbericht die vollständige Aufrufkette bei. Weitere Hinweise finden Sie unter »<https://gcc.gnu.org/bugs/>«. make[2]: *** [../../gcc-trunk/gcc/c/Make-lang.in:128: s-selftest-c] Fehler 1 make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet.... make[2]: Verzeichnis „/work/gnu/git/build-trunk/gcc“ wird verlassen make[1]: *** [Makefile:4573: all-gcc] Fehler 2 make[1]: Verzeichnis „/work/gnu/git/build-trunk“ wird verlassen make: *** [Makefile:1024: all] Fehler 2 So the localization is only partly dealt with.