public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2024-07-14 14:37 arsen at gcc dot gnu.org
2024-08-02 1:18 ` [Bug ada/115917] " sjames at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: arsen at gcc dot gnu.org @ 2024-07-14 14:37 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/115917] 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
2024-07-14 14:37 [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 arsen at gcc dot gnu.org
@ 2024-08-02 1:18 ` sjames at gcc dot gnu.org
2024-08-15 20:55 ` sjames at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-08-02 1:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
Last reconfirmed| |2024-08-02
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Seeing this too and the patch WFM. Not regtested.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/115917] 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
2024-07-14 14:37 [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 arsen at gcc dot gnu.org
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
3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-08-15 20:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
Patch tested & posted:
https://inbox.sourceware.org/gcc-patches/20240815171753.1630083-1-arsen@aarsen.me/T/#u
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/115917] 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
2024-07-14 14:37 [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 arsen at gcc dot gnu.org
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
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-08-19 9:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Arsen Arsenovic <arsen@gcc.gnu.org>:
https://gcc.gnu.org/g:9cbcf8d1de159e6113fafb5dc2feb4a7e467a302
commit r15-3019-g9cbcf8d1de159e6113fafb5dc2feb4a7e467a302
Author: Arsen ArsenoviÄ <arsen@aarsen.me>
Date: Thu Aug 15 19:17:41 2024 +0200
gnat: fix lto-type-mismatch between C_Version_String and
gnat_version_string [PR115917]
gcc/ada/ChangeLog:
PR ada/115917
* gnatvsn.ads: Add note about the duplication of this value in
version.c.
* version.c (VER_LEN_MAX): Define to the same value as
Gnatvsn.Ver_Len_Max.
(gnat_version_string): Use VER_LEN_MAX as bound.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ada/115917] GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch
2024-07-14 14:37 [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 arsen at gcc dot gnu.org
` (2 preceding siblings ...)
2024-08-19 9:08 ` cvs-commit at gcc dot gnu.org
@ 2024-09-09 6:31 ` ebotcazou at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-09-09 6:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Summary|GNAT fails to bootstrap |GNAT fails to bootstrap
|with LTO and |with LTO and
|-Werror=lto-type-mismatch |-Werror=lto-type-mismatch
|due to C_Version_String and |
|gnat_version_string on |
|x86_64-pc-linux-gnu |
Target Milestone|--- |15.0
Resolution|--- |FIXED
CC| |ebotcazou at gcc dot gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixed on mainline.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-09 6:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-14 14:37 [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 arsen at gcc dot gnu.org
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
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).