public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/4510: Compiler seg fault on '(String) ((long) d + "d")'
@ 2002-01-20 17:29 bryce
  0 siblings, 0 replies; 3+ messages in thread
From: bryce @ 2002-01-20 17:29 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, jsperri, nobody

Synopsis: Compiler seg fault on '(String) ((long) d + "d")'

State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Sun Jan 20 17:29:32 2002
State-Changed-Why:
    Confirmed fixed for GCC 3.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4510


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

* Re: java/4510: Compiler seg fault on '(String) ((long) d + "d")'
@ 2001-10-09 11:22 apbianco
  0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2001-10-09 11:22 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, jsperri, nobody

Synopsis: Compiler seg fault on '(String) ((long) d + "d")'

State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Tue Oct  9 11:22:49 2001
State-Changed-Why:
    I attached a patch. I'll check it in as soon as I finish
    testing it.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=4510&database=gcc


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

* java/4510: Compiler seg fault on '(String) ((long) d + "d")'
@ 2001-10-09  0:26 jsperri
  0 siblings, 0 replies; 3+ messages in thread
From: jsperri @ 2001-10-09  0:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4510
>Category:       java
>Synopsis:       Compiler seg fault on '(String) ((long) d + "d")'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 09 00:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jsperri@gmx.net
>Release:        gcc-3.0.1
>Organization:
>Environment:
gcc version 3.0.1 - Thread model: posix
built with ../gcc-3.0.1/configure --enable-threads=posix
on Linux Mandrake 8.0-x86


>Description:
The attached piece of code generates a segfault when compiled with gcj 3.0.1. Compiler flags used:
gcj -v --main=HelloWorld HelloWorld.java --classpath=/usr
/local/share/libgcj.jar -o Hello

Compiler output:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../../libgc
j.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../gcc-3.0.1/configure --enable-threads=posix
Thread model: posix
gcc version 3.0.1
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/jc1 HelloWorld.java -fuse-divide
-subroutine -fuse-boehm-gc -fnon-call-exceptions -quiet -dumpbase HelloWorld.jav
a -g1 -version -fclasspath=/usr/local/share/libgcj.jar -o /tmp/ccI7ZYnk.s
GNU Java version 3.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.0.1.
HelloWorld.java: In class `HelloWorld':
HelloWorld.java: In method `HelloWorld.main(java.lang.String[])':
HelloWorld.java:6: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
Just compile HelloWorld class.

GCJ should core with:
HelloWorld.java: In class `HelloWorld':
HelloWorld.java: In method `HelloWorld.main(java.lang.String[])':
HelloWorld.java:6: Internal error: Segmentation fault

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="HelloWorld.java"
Content-Disposition: inline; filename="HelloWorld.java"

public class HelloWorld {

    public static void main (String []args)
    {
	double d=1.0;
	System.out.println ((String) ((long) d + "d"));
    }
}


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

end of thread, other threads:[~2002-01-21  1:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-20 17:29 java/4510: Compiler seg fault on '(String) ((long) d + "d")' bryce
  -- strict thread matches above, loose matches on Subject: below --
2001-10-09 11:22 apbianco
2001-10-09  0:26 jsperri

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