From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16777 invoked by alias); 2 Mar 2015 00:49:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16735 invoked by uid 48); 2 Mar 2015 00:49:34 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/65270] New: [5 regression] ICF needs to match TYPE attributes on memory accesses Date: Mon, 02 Mar 2015 00:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00059.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65270 Bug ID: 65270 Summary: [5 regression] ICF needs to match TYPE attributes on memory accesses Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: hubicka at gcc dot gnu.org As discussed here https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00028.html $ more t.c struct a=20 { int a[100000]; } __attribute__ ((aligned (32))); struct b=20 { int a[100000]; }; t2(struct a *a) { int i; for (i=3D0;i<100000;i++) a->a[i]++; } t(struct b *a) { int i; for (i=3D0;i<100000;i++) a->a[i]++; } $ ./xgcc -B ./ -O3 t.c -flto -c -fno-inline=20 t.c:10:1: warning: return type defaults to =C4=8F=C5=BC=CB=9Dint=C4=8F=C5= =BC=CB=9D [-Wimplicit-int] t2(struct a *a) ^ t.c:16:1: warning: return type defaults to =C4=8F=C5=BC=CB=9Dint=C4=8F=C5= =BC=CB=9D [-Wimplicit-int] t(struct b *a) ^ $ ./xgcc -B ./ -O3 t.o -flto -r -nostdlib $ objdump a.out -d a.out: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 : 0: 48 8d 87 80 1a 06 00 lea 0x61a80(%rdi),%rax 7: 66 0f 6f 0d 00 00 00 movdqa 0x0(%rip),%xmm1 # f e: 00=20 f: 90 nop 10: 48 83 c7 10 add $0x10,%rdi 14: 66 0f 6f 47 f0 movdqa -0x10(%rdi),%xmm0 19: 66 0f fe c1 paddd %xmm1,%xmm0 1d: 0f 29 47 f0 movaps %xmm0,-0x10(%rdi) 21: 48 39 c7 cmp %rax,%rdi 24: 75 ea jne 10 26: f3 c3 repz retq=20 28: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) 2f: 00=20 0000000000000030 : 30: e9 00 00 00 00 jmpq 35 The functions t and t2 are incorrectly unified. >>From gcc-bugs-return-478916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 02 01:03:13 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102431 invoked by alias); 2 Mar 2015 01:03:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102359 invoked by uid 48); 2 Mar 2015 01:03:08 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65233] [5 Regression] ICE (segfault) on arm-linux-gnueabihf and aarch64-linux-gnu Date: Mon, 02 Mar 2015 01:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00060.txt.bz2 Content-length: 189 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65233 --- Comment #13 from Jan Hubicka --- Yep, this seems resonable patch to me. It is OK if it passes testing.