public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/45028] [4.6 regression] ICE building 64-bit libjava on Solaris 2/SPARC: output_operand: invalid expression as operand
Date: Thu, 22 Jul 2010 14:58:00 -0000	[thread overview]
Message-ID: <20100722145838.5652.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45028-279@http.gcc.gnu.org/bugzilla/>



------- Comment #18 from jakub at gcc dot gnu dot org  2010-07-22 14:58 -------
Sounds like a cprop_hardreg bug.  Before that pass we have (after a call_insn):

(insn 264 263 266 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:123
(set (reg/f:DI 1 %g1 [332])
        (reg:DI 8 %o0)) 60 {*movdi_insn_sp64} (expr_list:REG_NOALIAS (reg/f:DI
1 %g1 [332])
        (nil)))

(debug_insn 266 264 267 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:123
(var_location:DI this (reg/f:DI 1 %g1 [332])) -1 (nil))

...

(insn 1290 273 274 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:199
(set (mem/c:DI (plus:DI (reg/f:DI 30 %fp)
                (const_int 2023 [0x7e7])) [53 S8 A64])
        (reg:DI 1 %g1)) 60 {*movdi_insn_sp64} (expr_list:REG_DEAD (reg:DI 1
%g1)
        (nil)))

but in *.cprop_hardreg:

(insn 264 263 266 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:123
(set (reg/f:DI 1 %g1 [332])
        (reg:DI 8 %o0)) 60 {*movdi_insn_sp64} (expr_list:REG_NOALIAS (reg/f:DI
1 %g1 [332])
        (nil)))

(debug_insn 266 264 267 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:123
(var_location:DI this (reg/f:DI 1 %g1 [332])) -1 (nil))

...

(insn 1290 273 274 2
/vol/gcc/src/hg/trunk/local/libjava/classpath/gnu/javax/print/ipp/attribute/defaults/FinishingsDefault.java:199
(set (mem/c:DI (plus:DI (reg/f:DI 30 %fp)
                (const_int 2023 [0x7e7])) [53 S8 A64])
        (reg:DI 8 %o0 [1])) 60 {*movdi_insn_sp64} (expr_list:REG_DEAD (reg:DI 1
%g1)
        (nil)))

The %g1 use in 1290 was the only use of %g1 in real insns, but cprop_hardreg
failed to replace the %g1 uses in debug_insn for some reason.  Then in *.dce
the insn 264 is removed as dead, but nothing resets the debug_insns.

Rainer, do you think you could run make check in gcc/ subdir (assuming libjava
was the last unbuilt library and say libstdc++/libgfortran/libgomp are already
built) to see if this can be reproduced even on some C or C++ testcase? 
Debugging Java failures with cross isn't fun.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-22 14:58:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45028


  parent reply	other threads:[~2010-07-22 14:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 10:10 [Bug bootstrap/45028] New: " ro at gcc dot gnu dot org
2010-07-22 10:23 ` [Bug bootstrap/45028] " jakub at gcc dot gnu dot org
2010-07-22 10:35 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 10:47 ` jakub at gcc dot gnu dot org
2010-07-22 12:09 ` ro at gcc dot gnu dot org
2010-07-22 12:10 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 13:02 ` jakub at gcc dot gnu dot org
2010-07-22 13:10 ` ro at gcc dot gnu dot org
2010-07-22 13:35 ` jakub at gcc dot gnu dot org
2010-07-22 13:50 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 13:51 ` ro at gcc dot gnu dot org
2010-07-22 13:52 ` jakub at gcc dot gnu dot org
2010-07-22 13:54 ` ro at gcc dot gnu dot org
2010-07-22 14:03 ` jakub at gcc dot gnu dot org
2010-07-22 14:06 ` ro at gcc dot gnu dot org
2010-07-22 14:07 ` ro at gcc dot gnu dot org
2010-07-22 14:20 ` jakub at gcc dot gnu dot org
2010-07-22 14:29 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 14:58 ` jakub at gcc dot gnu dot org [this message]
2010-07-22 15:05 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 15:33 ` jakub at gcc dot gnu dot org
2010-07-22 15:54 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-22 20:49 ` jakub at gcc dot gnu dot org
2010-07-23  8:59 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-31 10:22 ` [Bug bootstrap/45028] [4.6 Regression] " rguenth at gcc dot gnu dot org
2010-08-25  9:54 ` jakub at gcc dot gnu dot 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=20100722145838.5652.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: 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).