public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/27025]  New: ICE on simple initializer
@ 2006-04-04 14:44 taral at taral dot net
  2006-04-04 14:45 ` [Bug java/27025] " taral at taral dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: taral at taral dot net @ 2006-04-04 14:44 UTC (permalink / raw)
  To: java-prs

class z {
    static final String ALGORITHM = "Rijndael";
    static final double VERSION = 0.1;
    static final String FULL_NAME = ALGORITHM + " ver. " + VERSION;
}

compiled with:

% gcj-4.1 -C z.java
z.java: In class 'z':
z.java: In method '<clinit>()':
z.java:4: internal compiler error: Segmentation fault

---

Debian package 4.1.0-1

configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release x86_64-linux-gnu


-- 
           Summary: ICE on simple initializer
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: taral at taral dot net
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
@ 2006-04-04 14:45 ` taral at taral dot net
  2006-04-04 15:23 ` aph at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: taral at taral dot net @ 2006-04-04 14:45 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from taral at taral dot net  2006-04-04 14:45 -------
This doesn't happen with gcj -c, only with gcj -C.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
  2006-04-04 14:45 ` [Bug java/27025] " taral at taral dot net
@ 2006-04-04 15:23 ` aph at gcc dot gnu dot org
  2006-04-04 16:11 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-04-04 15:23 UTC (permalink / raw)
  To: java-prs



-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aph at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-04 15:23:23
               date|                            |


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
  2006-04-04 14:45 ` [Bug java/27025] " taral at taral dot net
  2006-04-04 15:23 ` aph at gcc dot gnu dot org
@ 2006-04-04 16:11 ` tromey at gcc dot gnu dot org
  2006-04-04 17:12 ` aph at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-04-04 16:11 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-04-04 16:11 -------
Note that this works with 4.0 and fails with svn head.
So, it is a regression.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (2 preceding siblings ...)
  2006-04-04 16:11 ` tromey at gcc dot gnu dot org
@ 2006-04-04 17:12 ` aph at gcc dot gnu dot org
  2006-04-04 18:17 ` aph at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-04-04 17:12 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from aph at gcc dot gnu dot org  2006-04-04 17:12 -------
Created an attachment (id=11204)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11204&action=view)
PR java/27025: ICE on simple initializer


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (3 preceding siblings ...)
  2006-04-04 17:12 ` aph at gcc dot gnu dot org
@ 2006-04-04 18:17 ` aph at gcc dot gnu dot org
  2006-04-05 13:19 ` aph at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-04-04 18:17 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from aph at gcc dot gnu dot org  2006-04-04 18:17 -------
David Daney pointed out the part of the JLS that forbids my solution.  I'll
work on another patch.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (4 preceding siblings ...)
  2006-04-04 18:17 ` aph at gcc dot gnu dot org
@ 2006-04-05 13:19 ` aph at gcc dot gnu dot org
  2006-04-05 14:12 ` aph at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-04-05 13:19 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from aph at gcc dot gnu dot org  2006-04-05 13:19 -------
I don't think this is a regression.

[aph@zorro ~]$ ~/gcc/install-4.0/bin/gcj -C z.java
z.java: In class 'z':
z.java: In method 'z.main(java.lang.String[])':
z.java:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

zapata:~ $ /usr/bin/gcj -v        

gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
zapata:~ $ /usr/bin/gcj -C z.java 
z.java: In class `z':
z.java: In method `z.main(java.lang.String[])':
z.java:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (5 preceding siblings ...)
  2006-04-05 13:19 ` aph at gcc dot gnu dot org
@ 2006-04-05 14:12 ` aph at gcc dot gnu dot org
  2006-06-19 11:13 ` aph at gcc dot gnu dot org
  2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-04-05 14:12 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from aph at gcc dot gnu dot org  2006-04-05 14:12 -------
As far as I can see this bug is in every version of gcj that has ever existed.

There is special code (in merge_string_cste()) to convert an integer constant
to a constant string for concatenation.  However, there isn't any code to
convert a floating-point constant to  a constant string.

It would be fairly simple to call real_to_decimal() on the floating-point
number, but that function doesn't do Java-style floating-point formatting.  We
could add full Java-style floating-point output conversion to gcj, but I don't
think it would be worth the effort.

My proposed fix, although technically imperfect, cures 99% of the cases we are
ever likely to encounter.  It fails to fix weird cases like:

   switch(x) { case 0: break;
     case ("foo" + 2) == "foo2": break;
   }


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (6 preceding siblings ...)
  2006-04-05 14:12 ` aph at gcc dot gnu dot org
@ 2006-06-19 11:13 ` aph at gcc dot gnu dot org
  2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-06-19 11:13 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from aph at gcc dot gnu dot org  2006-06-19 11:13 -------
Deferred 'til ecj.


-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aph at gcc dot gnu dot org  |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug java/27025] ICE on simple initializer
  2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
                   ` (7 preceding siblings ...)
  2006-06-19 11:13 ` aph at gcc dot gnu dot org
@ 2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:53 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from tromey at gcc dot gnu dot org  2007-01-09 20:48 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-01-09 20:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 14:44 [Bug java/27025] New: ICE on simple initializer taral at taral dot net
2006-04-04 14:45 ` [Bug java/27025] " taral at taral dot net
2006-04-04 15:23 ` aph at gcc dot gnu dot org
2006-04-04 16:11 ` tromey at gcc dot gnu dot org
2006-04-04 17:12 ` aph at gcc dot gnu dot org
2006-04-04 18:17 ` aph at gcc dot gnu dot org
2006-04-05 13:19 ` aph at gcc dot gnu dot org
2006-04-05 14:12 ` aph at gcc dot gnu dot org
2006-06-19 11:13 ` aph at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org

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).