public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "licheng.1212 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/48417] -ffixed-regs option can't work in mips-elf-gcj compiler
Date: Sat, 27 Aug 2011 06:12:00 -0000 [thread overview]
Message-ID: <bug-48417-8172-VX6NTcIcRu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48417-8172@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48417
--- Comment #6 from licheng.1212 at gmail dot com <licheng.1212 at gmail dot com> 2011-08-27 06:12:05 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> > still hava this problem,please see the latest commit
>
> See PR43700, which I suspect was fixed by r172616 on trunk.
PR43700's patch is bad,But PR43732's patch is OK
PR43700:
--- branches/gcc-4_4-branch/gcc/config/mips/mips.c 2011/05/29 17:51:03
174408
+++ branches/gcc-4_4-branch/gcc/config/mips/mips.c 2011/05/29 18:10:44
174409
@@ -8495,7 +8495,7 @@
property here. */
return (regno == GLOBAL_POINTER_REGNUM
? TARGET_CALL_SAVED_GP
- : !call_really_used_regs[regno]);
+ : !global_regs[regno] && !call_really_used_regs[regno]);
}
/* Return true if the function body might clobber register REGNO.
PR43732:
diff -Naur gcc-4.4.3.base/gcc/config/mips/mips.c
gcc-4.4.3/gcc/config/mips/mips.c
--- gcc-4.4.3.base/gcc/config/mips/mips.c 2010-04-09 14:10:00.235609702
-0400
+++ gcc-4.4.3/gcc/config/mips/mips.c 2010-04-09 14:12:28.520998582 -0400
@@ -8495,7 +8495,7 @@
property here. */
return (regno == GLOBAL_POINTER_REGNUM
? TARGET_CALL_SAVED_GP
- : !call_really_used_regs[regno]);
+ : !call_really_used_regs[regno] && !fixed_regs[regno]);
}
/* Return true if the function body might clobber register REGNO.
Please check it!!
next prev parent reply other threads:[~2011-08-27 6:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-02 19:55 [Bug java/48417] New: " licheng.1212 at gmail dot com
2011-04-03 11:06 ` [Bug java/48417] " rguenth at gcc dot gnu.org
2011-04-03 15:43 ` licheng.1212 at gmail dot com
2011-04-27 16:05 ` licheng.1212 at gmail dot com
2011-05-17 15:48 ` licheng.1212 at gmail dot com
2011-05-17 17:26 ` mikpe at it dot uu.se
2011-08-27 6:12 ` licheng.1212 at gmail dot com [this message]
2011-08-28 10:26 ` mikpe at it dot uu.se
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-48417-8172-VX6NTcIcRu@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=java-prs@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: link
Be 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).