emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suspicious warning in W64 build


From: Richard Copley
Subject: Re: Suspicious warning in W64 build
Date: Thu, 7 Sep 2017 18:52:35 +0100

On 7 September 2017 at 16:42, Angelo Graziosi <address@hidden> wrote:
>> Il 7 settembre 2017 alle 17.16 Eli Zaretskii <address@hidden> ha scritto:
>> > Date: Tue, 5 Sep 2017 15:38:15 +0200 (CEST)
>> > From: Angelo Graziosi <address@hidden>
>> >
>> > In the log build of current master on MSYS2/MINGW64, I see:
>> >
>> > [...]
>> > CC       w32term.o
>> > C:/msys64/tmp/src/src/w32font.c: In function 'w32font_text_extents':
>> > C:/msys64/tmp/src/src/w32font.c:547:9: warning: argument 1 range 
>> > [18446744065119617024, 18446744073709551612] exceeds maximum object size 
>> > 9223372036854775807 [-Walloc-size-larger-than=]
>> >    wcode = alloca (nglyphs * sizeof (WORD) * 2);
>> >          ^
>> > C:/msys64/tmp/src/src/w32font.c:547:9: note: in a call to built-in 
>> > allocation function '__builtin_alloca'
>>

>> Where did it take these 2 numbers?

I also see the warning (I use the same toolchain).

18446744065119617024 is 1<<64.
The other number is (1<<64) - (1<<33) - (1<<2).

That's just crazy. It must be a GCC bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]