[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Pacify Oracle Studio c99
From: |
Paul Smith |
Subject: |
Re: [PATCH] Pacify Oracle Studio c99 |
Date: |
Tue, 27 Aug 2019 15:44:55 -0400 |
On Tue, 2019-08-27 at 12:32 -0700, Paul Eggert wrote:
> Use unsigned int, not unsigned short. Without this patch, c99
> complains ‘warning: nonportable bit-field type’.
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. It ostensibly saves two bytes per struct dep but they
cannot be obtained in any way that lets us actually avoid the extra 2
bytes of dead space, at least not on any common architecture today.