public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/3248: problem with java option -femit-class-files
@ 2001-07-05 18:11 apbianco
  0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2001-07-05 18:11 UTC (permalink / raw)
  To: Haj.Ten.Brugge, apbianco, gcc-bugs, gcc-prs, java-prs, nobody

Synopsis: problem with java option -femit-class-files

Responsible-Changed-From-To: unassigned->apbianco
Responsible-Changed-By: apbianco
Responsible-Changed-When: Thu Jul  5 18:11:16 2001
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Jul  5 18:11:16 2001
State-Changed-Why:
    I have a patch for that. I don't know if it's the best way
    to fix it. Anyone with better knowledge of jvspec.c?

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


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

* Re: java/3248: problem with java option -femit-class-files
@ 2002-01-04 19:09 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-04 19:09 UTC (permalink / raw)
  To: Haj.Ten.Brugge, apbianco, gcc-bugs, gcc-prs, java-prs

Synopsis: problem with java option -femit-class-files

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Jan  4 19:09:57 2002
State-Changed-Why:
    Patch applied:
    http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00701.html 

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


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

* java/3248: problem with java option -femit-class-files
@ 2001-06-19  0:26 Haj.Ten.Brugge
  0 siblings, 0 replies; 3+ messages in thread
From: Haj.Ten.Brugge @ 2001-06-19  0:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3248
>Category:       java
>Synopsis:       problem with java option -femit-class-files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 19 00:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Haj.Ten.Brugge@net.HCC.nl
>Release:        3.0, 3.1
>Organization:
>Environment:
i386 / sparc
>Description:
I found a problem with java compiler option '-femit-class-files'.
If the code below (fail.java) is compiled with this option a SEGV occurs:

public class fail { static String[] error = { "error" }; }


The ananlyses from Jeff Sturm is:

Thanks for the report.  The quick explanation is that -femit-class-files
isn't intended to be used that way.  If you want a .class file, compile
with "gcj -C".  (The -C flag causes the language driver to pass both
-femit-class-files and -fsyntax-only to jc1.)

However, a SIGSEGV isn't the best way to handle this.  The gcj compiler
should complain about unsupported options.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-01-05  3:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-05 18:11 java/3248: problem with java option -femit-class-files apbianco
  -- strict thread matches above, loose matches on Subject: below --
2002-01-04 19:09 rodrigc
2001-06-19  0:26 Haj.Ten.Brugge

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