public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/60973] Invalid propagation of a tail call in devirt pass Date: Wed, 07 May 2014 18:10:00 -0000 [thread overview] Message-ID: <bug-60973-4-b6hBNqtJSu@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60973-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60973 --- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Richard Biener from comment #1) > Index: gcc/tree-inline.c I have checked this patch on my target, where it fixes the runtime problem. The optimized tree dump results in: int main(int, char**) (int argc, char * * argv) { int retval.0; struct C c; int _3; <bb 2>: C::C (&c); _3 = get_input (); retval.0_8 = C::foo (&c, _3); if (retval.0_8 != 4) goto <bb 3>; else goto <bb 4>; <bb 3>: abort (); <bb 4>: c ={v} {CLOBBER}; return 0; } which expands to the correct RTL sequence. >From gcc-bugs-return-450882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 07 18:13:24 2014 Return-Path: <gcc-bugs-return-450882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12762 invoked by alias); 7 May 2014 18:13:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12702 invoked by uid 48); 7 May 2014 18:13:20 -0000 From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61082] [x86-64 Itanium ABI] g++ uses wrong return location for class with head padding Date: Wed, 07 May 2014 18:13: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: 4.9.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: hjl.tools at gmail dot com 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: Message-ID: <bug-61082-4-HWoFZqVxqP@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-61082-4@http.gcc.gnu.org/bugzilla/> References: <bug-61082-4@http.gcc.gnu.org/bugzilla/> 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-05/txt/msg00574.txt.bz2 Content-length: 896 http://gcc.gnu.org/bugzilla/show_bug.cgi?ida082 --- Comment #14 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to David Greene from comment #13) > I see that 3.2.3 4 (b) is talking about considering adjacent fields in an > eightbyte. Is the intent to classify each eightbyte in an aggregate and > then consider each eightbyte separately for assigning argument and return > registers? That is correct. > The post-merger cleanup described in 5 appears to handle passing in memory > in that it considers all of the fields in the aggregate together. > > Given the above, if a field crosses an eightbyte either it is larger than an > eightbyte either it is unaligned which forces the whole argument to memory > or its eightbytes are classified separately in a recursive manner. > > Does this sound correct? If so, I think gcc is correct in what it's doing. I think GCC is correct.
next prev parent reply other threads:[~2014-05-07 18:10 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-04-26 8:27 [Bug tree-optimization/60973] New: Invalid propagation of a tail call in copyrename2 pass ubizjak at gmail dot com 2014-04-28 9:49 ` [Bug ipa/60973] Invalid propagation of a tail call in devirt pass rguenth at gcc dot gnu.org 2014-05-06 11:28 ` hubicka at gcc dot gnu.org 2014-05-07 18:10 ` ubizjak at gmail dot com [this message] 2014-05-09 10:56 ` rguenth at gcc dot gnu.org 2014-05-09 14:27 ` hubicka at ucw dot cz 2014-05-13 7:57 ` rguenth at gcc dot gnu.org 2014-05-13 11:05 ` rguenth at gcc dot gnu.org 2014-05-13 11:06 ` rguenth at gcc dot gnu.org 2014-05-13 11:06 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60973-4-b6hBNqtJSu@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).