Question about sizeof after struct change

Nathan Sidwell nathan@acm.org
Sat Dec 28 21:13:00 GMT 2019


On 12/23/19 12:30 PM, Erick Ochoa wrote:
> Hi,
> 
> I am working on an LTO pass which drops unused fields on structs. On my
> tests, I found that the gimple generated for `sizeof` is a constant. For
> example, for the following C code:
> 
> ```

you also need to pay attention to offsetof.

nathan
-- 
Nathan Sidwell



More information about the Gcc mailing list