From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2872 invoked by alias); 29 Oct 2014 15:05:17 -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 2822 invoked by uid 48); 29 Oct 2014 15:05:12 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305 Date: Wed, 29 Oct 2014 15:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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: 2014-10/txt/msg02242.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63622 --- Comment #3 from Martin Li=C5=A1ka --- Created attachment 33843 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33843&action=3Dedit IPA ICF aliasing restriction Can you please try to apply following patch? It should disable alias creation for targets that do not support aliasing. >>From gcc-bugs-return-465222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 29 15:11:11 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5434 invoked by alias); 29 Oct 2014 15:11: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 5413 invoked by uid 48); 29 Oct 2014 15:11:07 -0000 From: "belagod at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/63677] New: Failure to constant fold with vectorization. Date: Wed, 29 Oct 2014 15:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: belagod 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02243.txt.bz2 Content-length: 2096 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63677 Bug ID: 63677 Summary: Failure to constant fold with vectorization. Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: belagod at gcc dot gnu.org This piece of code: int __attribute__ ((noinline)) foo () { const int a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; int i, sum; sum = 0; for (i = 0; i < sizeof (a) / sizeof (*a); i++) sum += a[i]; return sum; } when compiled with -O3 on x86_64 generates: foo: .LFB0: .cfi_startproc movdqa .LC1(%rip), %xmm0 paddd .LC0(%rip), %xmm0 movdqa %xmm0, %xmm1 psrldq $8, %xmm1 paddd %xmm1, %xmm0 movdqa %xmm0, %xmm1 psrldq $4, %xmm1 paddd %xmm1, %xmm0 movd %xmm0, %eax ret .cfi_endproc .LFE0: .size foo, .-foo .section .text.unlikely .LCOLDE3: .text .LHOTE3: .section .rodata.cst16,"aM",@progbits,16 .align 16 .LC0: .long 0 .long 1 .long 2 .long 3 .align 16 .LC1: .long 4 .long 5 .long 6 .long 7 .ident "GCC: (GNU) 5.0.0 20141023 (experimental)" .section .note.GNU-stack,"",@progbits but when compiled with -O3 -mno-sse generates: foo: .LFB0: .cfi_startproc movl $28, %eax ret .cfi_endproc .LFE0: .size foo, .-foo .section .text.unlikely .LCOLDE0: Why isn't constant folding happening when generating code for vector unit? $ gcc -v Using built-in specs. COLLECT_GCC=/work/dev/arm/bin_x86/install/bin/gcc COLLECT_LTO_WRAPPER=/work/dev/arm/bin_x86/install/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../src/gcc/configure --prefix=/work/dev/arm/bin_x86/install --enable-bootstrap --disable-nls --enable-languages=c,c++,fortran --disable-multilib Thread model: posix gcc version 5.0.0 20141023 (experimental) (GCC)