Re: Test GCC conversion with reposurgeon available

2019-12-23 Thread Roman Zhuykov
22.12.2019 16:56, Joseph Myers wrote: On Thu, 19 Dec 2019, Joseph Myers wrote: And two more. git+ssh://gcc.gnu.org/home/gccadmin/gcc-reposurgeon-4a.git git+ssh://gcc.gnu.org/home/gccadmin/gcc-reposurgeon-4b.git Two more. git+ssh://gcc.gnu.org/home/gccadmin/gcc-reposurgeon-5a.git git+ssh://gc

Question about sizeof after struct change

2019-12-23 Thread Erick Ochoa
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: ``` struct astruct_s { _Bool c; _Bool a; _Bool b; }; struct astruct_s astruct; int main() { int size = sizeof(

Re: Question about sizeof after struct change

2019-12-23 Thread Richard Biener
On December 23, 2019 6:30:31 PM GMT+01:00, 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: > >``` >struct astruct_s { _Bool c; _Bool a;