Re: [PATCH] Fix loading of lto_section on strict alignment targets (PR lto/91078).

2019-07-04 Thread Richard Biener
On Thu, Jul 4, 2019 at 9:01 AM Martin Liška wrote: > > Hi. > > The patch fixes wrong assignment from a char * to lto_section_header > that is seen on strict alignment targets. > > I verified it fixes the problem with -fsanitize=undefined: > > gcc main.o -flto > ../../gcc/lto/lto-common.c:2202:36:

Re: [PATCH] Fix loading of lto_section on strict alignment targets (PR lto/91078).

2019-07-04 Thread Rainer Orth
Hi Martin, > The patch fixes wrong assignment from a char * to lto_section_header > that is seen on strict alignment targets. > > I verified it fixes the problem with -fsanitize=undefined: > > gcc main.o -flto > ../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to > misaligned

[PATCH] Fix loading of lto_section on strict alignment targets (PR lto/91078).

2019-07-04 Thread Martin Liška
Hi. The patch fixes wrong assignment from a char * to lto_section_header that is seen on strict alignment targets. I verified it fixes the problem with -fsanitize=undefined: gcc main.o -flto ../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to misaligned address 0x7f64dac090a