public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "arsen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/115917] New: GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch due to C_Version_String and gnat_version_string on x86_64-pc-linux-gnu Date: Sun, 14 Jul 2024 14:37:03 +0000 [thread overview] Message-ID: <bug-115917-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917 Bug ID: 115917 Summary: GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch due to C_Version_String and gnat_version_string on x86_64-pc-linux-gnu Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: arsen at gcc dot gnu.org CC: dkm at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu Created attachment 58657 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58657&action=edit possible (regression untested, but build tested) fix $summary I've been using the attached patch as a workaround (or potentially a fix), but I haven't regression tested it or sent it upstream yet. ../../gcc/gcc/ada/gnatvsn.adb:51:4: warning: type of ‘gnatvsn__c_version_string’ does not match original declaration [-Wlto-type-mismatch] 51 | C_Version_String : char_array (0 .. Ver_Len_Max - 1); | ^ ../../gcc/gcc/ada/version.c:34:6: note: array types have different bounds 34 | char gnat_version_string[] = version_string; | ^ ../../gcc/gcc/ada/version.c:34:6: note: ‘gnat_version_string’ was previously declared here
next reply other threads:[~2024-07-14 14:37 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-07-14 14:37 arsen at gcc dot gnu.org [this message] 2024-08-02 1:18 ` [Bug ada/115917] " sjames at gcc dot gnu.org 2024-08-15 20:55 ` sjames at gcc dot gnu.org 2024-08-19 9:08 ` cvs-commit at gcc dot gnu.org 2024-09-09 6:31 ` [Bug ada/115917] GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch ebotcazou at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-115917-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).