public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "edmar at freescale dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/44618] Arguments are not passed correctly to out-of-line restore functions. Date: Tue, 22 Jun 2010 16:53:00 -0000 [thread overview] Message-ID: <20100622165332.10578.qmail@sourceware.org> (raw) In-Reply-To: <bug-44618-12262@http.gcc.gnu.org/bugzilla/> ------- Comment #11 from edmar at freescale dot com 2010-06-22 16:53 ------- (In reply to comment #10) > Because the insn has a register reference to r11/r1/r12 :) that is the (use > (match_operand: )) part of the rtx. This is unlike call instructions which > don't have match_operands for function arguments. That is what I mean explicit > vs implicit. Ok. > I mixed up insn rtl codes, woops. I thought calls was always done using > jump_insn. Anyways I am saying you are hard coding a target specific > information inside a target generic part of the code. This is why I think it > is the wrong approach. I understand your point of view. But I am still convinced that a jump_insn with a parallel and symbol reference (external or global) cannot have the explicit registers renamed, regardless of the target architecture. Now, if powerpc is the only target that can generate such a rtl (jump_insn, with external symbol reference), then I have to agree with you... > (define_insn "return_indirect_internal" > [(return) > (use (match_operand:SI 0 "register_operand" "r"))] > "reload_completed" > "jmp\t%A0" > [(set_attr "type" "ibr") > (set_attr "length_immediate" "0")]) > > Though it is harder to invoke that but still it can happen if I read the code > correctly (the pop needs to be greater than 64k). This was close, but it has no symbol reference. Therefore it is ok to rename the register, because the use of the register is in the "jmp" instruction and not inside the code that the "jmp" points to. (i.e., this insn is not passing an argument to a function). Ok, I have to change my patch, but before I do that, I want to make sure we agree on the details. Is it safe to assume that powerpc is the only target that can generate such a rtl ? If not, I will modify the patch to add a test that checks if there is a symbol reference. If it is, I will scratch all this, and will make the powerpc target generate a call_insn instead of a jump_insn (At this point we agree that reg rename cannot swallow a jump_insn, right ?) Thanks, Edmar -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44618
next prev parent reply other threads:[~2010-06-22 16:53 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-21 20:14 [Bug rtl-optimization/44618] New: Arguments are not passed correctly to out-of-line restore functions. [4.4][4.5][4.6] edmar at freescale dot com 2010-06-21 20:15 ` [Bug rtl-optimization/44618] " edmar at freescale dot com 2010-06-21 20:15 ` edmar at freescale dot com 2010-06-21 20:17 ` edmar at freescale dot com 2010-06-21 20:18 ` edmar at freescale dot com 2010-06-21 20:25 ` edmar at freescale dot com 2010-06-21 20:34 ` [Bug target/44618] Arguments are not passed correctly to out-of-line restore functions pinskia at gcc dot gnu dot org 2010-06-21 21:18 ` edmar at freescale dot com 2010-06-21 21:30 ` pinskia at gcc dot gnu dot org 2010-06-21 23:36 ` edmar at freescale dot com 2010-06-21 23:54 ` pinskia at gcc dot gnu dot org 2010-06-22 16:53 ` edmar at freescale dot com [this message] 2010-06-22 20:51 ` edmar at freescale dot com 2010-06-22 20:56 ` jakub at gcc dot gnu dot org 2010-06-28 15:16 ` edmar at freescale dot com 2010-06-28 15:18 ` edmar at freescale dot com 2010-06-28 15:18 ` edmar at freescale dot com 2010-06-28 15:19 ` edmar at freescale dot com [not found] <bug-44618-4@http.gcc.gnu.org/bugzilla/> 2011-04-27 10:21 ` ebotcazou 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=20100622165332.10578.qmail@sourceware.org \ --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).