From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: [ANN] GCC 14.2.0-3 (aarch64, macOS) Date: Sun, 24 Nov 2024 11:17:07 +0000 Organization: A noiseless patient Spider Message-ID: References: <0001HW.2CEF898E0005B91A30DDA538F@news.individual.net> <20241122110223.5f66f440@tag.xn--rombobjrn-67a.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 24 Nov 2024 12:17:10 +0100 (CET) Injection-Info: dont-email.me; posting-host="2085473b01c4bb0f9ce1ece714950e8c"; logging-data="2334168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7abBmkmzZINj+nuAk9h6aEEMtfLeaNQo=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:VbSgJ27y07U+qPHR+KOl/Xb53cs= sha1:rTf0dSkyFf8hLhBacbnmyzgmAkE= Xref: news.eternal-september.org comp.lang.ada:66461 List-Id: moi writes: > On 22/11/2024 10:02, Björn Persson wrote: >> Bill Findlay wrote: >>> warning: '__builtin_memcpy' writing between 1 and 2147483647 bytes >>> into a region of size 0 [-Wstringop-overflow=] >> I've seen many occurrences of that bogus warning in Fedora, so it's >> not unique to Simon's build. Thus the place to report it would be >> https://gcc.gnu.org/bugzilla/. >> Björn Persson >> > Do you get it only in 14.2.0-*, Björn? It happens with gcc version 15.0.0 20241102 (experimental) :-( And with an x86_64-apple-darwin GCC 4.2.0 build (on aarch64, under Rosetta) I noticed In function 'disassembly__data_access_name', inlined from 'disassembly__the_full_name_of' at /Users/simon/tmp/emulation/Source/disassembly.adb:483:44: /Users/simon/tmp/emulation/Source/disassembly.adb:452:48: warning: '__builtin_memcpy' writing between 1 and 2147483647 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 452 | modifier : constant String := M_suffix & Q_suffix; | ^ /Users/simon/tmp/emulation/Source/disassembly.adb:452:48: note: destination object 'S1471b.315' of size 0 452 | modifier : constant String := M_suffix & Q_suffix; | ^ /Users/simon/tmp/emulation/Source/disassembly.adb:452:48: warning: '__builtin_memcpy' writing between 1 and 2147483647 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 452 | modifier : constant String := M_suffix & Q_suffix; | ^ /Users/simon/tmp/emulation/Source/disassembly.adb:452:48: note: destination object 'S1471b.315' of size 0 452 | modifier : constant String := M_suffix & Q_suffix; | ^