bug-make
[Top][All Lists]
Advanced

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

Re: [PATCH] Pacify Oracle Studio c99


From: Paul Eggert
Subject: Re: [PATCH] Pacify Oracle Studio c99
Date: Tue, 27 Aug 2019 13:23:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Paul Smith wrote:
I saw this warning on Windows as well.  I seem to recall that this was
done on purpose to pack data structures more tightly, which can save a
lot of memory on large build systems.

However looking at it now I don't think it will actually end up saving
any space.

I don't either. In a struct, 'unsigned int foo : 8;' should behave like 'unsigned short foo : 8;', and similarly if you change 'short' to 'char', or change '8' to '1'. At least, that should be true for typical compilers (the C standard doesn't say exactly what should happen).



reply via email to

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