From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BAD1395C07A; Wed, 16 Nov 2022 20:09:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BAD1395C07A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668629371; bh=W1cUDz7mKhigB2mO1EGlEV+t0jUzmPpk5xoU3TmVkyc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Jrs9VPFz64V5zTzJ8XMZ7k4ZHWuU0KQpoIZraBr4fF4ssYu1ZERQsHxgZ3w//lTlF fOJgdEmWnviDLQV6EUA/oJzwKtKghWhw1oemM5n8PX59PxnrFsPppEZWsOixSnh68r tTWnYWSeD+THd5c6KclKbNX5FA8ggMCddjVZg88o= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107722] [13 Regression] Bootstrap failure for some locales starting with r13-4070 Date: Wed, 16 Nov 2022 20:09:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107722 --- 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 =3D s.file ? s.file : progname; > int line =3D 0; > int col =3D -1; > - if (strcmp (file, N_(""))) > + if (strcmp (file, special_fname_builtin ())) > { > line =3D s.line; > if (context->show_column) > @@ -2593,7 +2593,7 @@ test_diagnostic_get_location_text () > const char *old_progname =3D progname; > progname =3D "PROGNAME"; > assert_location_text ("PROGNAME:", NULL, 0, 0, true); > - assert_location_text (":", "", 42, 10, true); > + assert_location_text (":", 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); >=20 >=20 > 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=3D../../gcc-trunk/gcc/testsuite/selftests ../../gcc-trunk/gcc/diagnostic.cc:2584: assert_location_text: FAIL: ASSERT_STREQ (expected_loc_text, actual_loc_text) val1=3D":" val2=3D":" 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*, ch= ar 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=C3=A4ndigen Fehlerbericht auf Englisch ein; inclusive vorverarbeitetem Quellcode (siehe -freport-bug). Bitte f=C3=BCgen Sie jedem Fehlerbericht die vollst=C3=A4ndige Aufrufkette = bei. Weitere Hinweise finden Sie unter =C2=BB=C2=AB. 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 =E2=80=9E/work/gnu/git/build-trunk/gcc=E2=80=9C wird v= erlassen make[1]: *** [Makefile:4573: all-gcc] Fehler 2 make[1]: Verzeichnis =E2=80=9E/work/gnu/git/build-trunk=E2=80=9C wird verla= ssen make: *** [Makefile:1024: all] Fehler 2 So the localization is only partly dealt with.=