Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)

Liste des GroupesRevenir à cl ada 
Sujet : Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)
De : findlaybill (at) *nospam* blueyonder.co.uk (Bill Findlay)
Groupes : comp.lang.ada
Date : 21. Nov 2024, 16:30:22
Autres entêtes
Organisation : none
Message-ID : <0001HW.2CEF898E0005B91A30DDA538F@news.individual.net>
References : 1
User-Agent : Hogwasher/5.24
On 17 Nov 2024, Simon Wright wrote
(in article <lyserpq5wi.fsf@pushface.org>):

Available at [1]. Included tools at v25.0.0.
>
[1] https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-14.2.0-3
-aarch64

Hi Simon, many thanks for that.

I note that 14.2.0-3 has the same issue as all previous 14.2 versions:
a spurious error message on a simple string concatenation,
which appears only when link-time optimization is called for:

gnatmake -aI../Source -aO../Build -funwind-tables -gnatl12j96 -gnatw.e
-gnatwD -gnatwH -gnatwP -gnatwT -gnatw.W -gnatw.B -gnatwC -gnatw.u -gnatyO
-gnatw.Y -gnatw.N -fdata-sections -ffunction-sections -O3 -flto askance
-bargs -static -Sin -largs -Wl,-dead_strip -Wl,-dead_strip -largs -flto
...
gnatbind -aI../Source -aO../Build -static -Sin -x askance.ali
gnatlink askance.ali -funwind-tables -fdata-sections -ffunction-sections -O3
-flto -Wl,-dead_strip -Wl,-dead_strip -flto
lto-wrapper: warning: using serial compilation of 4 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
/Users/wf/KDF9/emulation/Source/posix.adb: In function 'posix__output_line':
/Users/wf/KDF9/emulation/Source/posix.adb:277:49: warning: '__builtin_memcpy'
writing between 1 and 2147483647 bytes into a region of size 0
[-Wstringop-overflow=]
277 | message_line : constant String := message &  NL;
| ^

This is in the routine:

procedure output_line (message : in String) is
message_line : String := message &  NL;
begin
output(message_line);
end output_line;

where:

NL : constant String := OS_specifics.EOL;

in the package spec., and:

package body OS_specifics is

function EOL
return String
is (1 =>  Character'Val(16#0A#));
...

Changing the complained-of line to:

message_line : String := message &  (NL &  "");

makes the warning go away.

--
Bill Findlay


Date Sujet#  Auteur
17 Nov 24 * [ANN] GCC 14.2.0-3 (aarch64, macOS)15Simon Wright
21 Nov 24 `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)14Bill Findlay
21 Nov 24  +- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1moi
21 Nov 24  +* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)2Simon Wright
22 Nov 24  i`- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1moi
22 Nov 24  `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)10Björn Persson
24 Nov 24   `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)9moi
24 Nov 24    +- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1Simon Wright
26 Nov 24    +- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1Björn Persson
29 Nov 24    `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)6Björn Persson
29 Nov 24     `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)5Simon Wright
29 Nov 24      `* Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)4Keith Thompson
29 Nov 24       +- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1Simon Wright
29 Nov 24       +- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1Björn Persson
30 Nov 24       `- Re: [ANN] GCC 14.2.0-3 (aarch64, macOS)1Keith Thompson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal