From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38116 invoked by alias); 6 Oct 2015 09:21:30 -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 38079 invoked by uid 48); 6 Oct 2015 09:21:26 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66697] Feature request: -mstackrealign and force_align_arg_pointer for x86_64 Date: Tue, 06 Oct 2015 09:21: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2015-10/txt/msg00397.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66697 --- Comment #10 from Uro=C5=A1 Bizjak --- Version 2 patch to be attached. For the following testcase: --cut here-- typedef float __v4sf __attribute__ ((__vector_size__ (16))); __v4sf __attribute__((force_align_arg_pointer, ms_abi)) test_ms (__v4sf a, __v4sf b) { volatile register __v4sf x __asm__("%xmm6") =3D a; volatile register __v4sf y __asm__("%xmm7") =3D b; volatile __v4sf r =3D x + y; return r; } --cut here-- -O2 generates: 0000000000000000 : 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 48 83 ec 20 sub $0x20,%rsp 8: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp c: 48 83 ec 10 sub $0x10,%rsp 10: 0f 28 02 movaps (%rdx),%xmm0 13: 0f 58 01 addps (%rcx),%xmm0 16: 0f 11 75 e0 movups %xmm6,0xffffffffffffffe0(%rbp) 1a: 0f 11 7d f0 movups %xmm7,0xfffffffffffffff0(%rbp) 1e: 0f 29 04 24 movaps %xmm0,(%rsp) 22: 0f 10 75 e0 movups 0xffffffffffffffe0(%rbp),%xmm6 26: 0f 28 04 24 movaps (%rsp),%xmm0 2a: 0f 10 7d f0 movups 0xfffffffffffffff0(%rbp),%xmm7 2e: c9 leaveq=20 2f: c3 retq=20=20=20 xmm6 and xmm7 are saved outside stack realignment area. Please note that mo= vups with aligned operand is as fast as movaps, so considering that unaligned incoming stack should be avoided, I think that the above code is acceptable. >>From gcc-bugs-return-498843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 06 09:23:32 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44547 invoked by alias); 6 Oct 2015 09:23:32 -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 44505 invoked by uid 48); 6 Oct 2015 09:23:28 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66697] Feature request: -mstackrealign and force_align_arg_pointer for x86_64 Date: Tue, 06 Oct 2015 09:23: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete 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: 2015-10/txt/msg00398.txt.bz2 Content-length: 586 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66697 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36445|0 |1 is obsolete| | --- Comment #11 from Uro=C5=A1 Bizjak --- Created attachment 36450 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D36450&action=3Dedit V2 patch that enables force_align_arg_pointer attribute for x86_64 targets >>From gcc-bugs-return-498844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 06 09:35:50 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128895 invoked by alias); 6 Oct 2015 09:35:49 -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 128868 invoked by uid 48); 6 Oct 2015 09:35:45 -0000 From: "marcin.slusarz at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/67764] -Wconversion generates false warnings for bitmask+cast expressions Date: Tue, 06 Oct 2015 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marcin.slusarz at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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: 2015-10/txt/msg00399.txt.bz2 Content-length: 288 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67764 --- Comment #4 from Marcin =C5=9Alusarz -= -- The issue is similar. However what I described in this bug can be considere= d a regression, because gcc 4.9 behaves correctly. Bug 40752 is 6 years old. >>From gcc-bugs-return-498845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 06 10:20:32 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73774 invoked by alias); 6 Oct 2015 10:20:32 -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 73669 invoked by uid 55); 6 Oct 2015 10:20:27 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/67563] [5 Regression] verify_flow_info failed Date: Tue, 06 Oct 2015 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.3 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-10/txt/msg00400.txt.bz2 Content-length: 1385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67563 --- Comment #7 from Richard Biener --- Author: rguenth Date: Tue Oct 6 10:19:54 2015 New Revision: 228517 URL: https://gcc.gnu.org/viewcvs?rev=228517&root=gcc&view=rev Log: 2015-10-06 Richard Biener Backport from mainline 2015-09-15 Richard Biener PR middle-end/67563 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not transfer EH info from old to new stmt. (replace_call_with_value): Likewise. (replace_call_with_call_and_fold): Likewise. (gimple_fold_builtin_memory_op): Likewise. (gimple_fold_builtin_memset): Likewise. (gimple_fold_builtin_stpcpy): Likewise. (gimple_fold_call): Likewise. * gcc.dg/pr67563.c: New testcase. 2015-09-24 Richard Biener PR lto/67699 * lto-cgraph.c (compute_ltrans_boundary): Do not stream abstract origins. * g++.dg/pr67699.C: New testcase. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/pr67699.C branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr67563.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/gimple-fold.c branches/gcc-5-branch/gcc/lto-cgraph.c branches/gcc-5-branch/gcc/testsuite/ChangeLog