public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/14818] New: gcj: boolean value changes with -Os
@ 2004-04-02  3:04 ovidr at users dot sourceforge dot net
  2004-04-02  3:16 ` [Bug java/14818] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ovidr at users dot sourceforge dot net @ 2004-04-02  3:04 UTC (permalink / raw)
  To: java-prs

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

public class gc
{
  static public void main (String[] s)
  {
   bla(false);
  }

  static void bla(boolean b) {
    System.out.println("1 - now: " + b);

    try {
      Socket socket = new Socket("localhost", 8888);
    } catch (IOException e) {
      System.out.println("2 - now: " +  b);
    }
  }
}

/*

linux
gcc version 3.4.0 20040131 (prerelease)

results:
gcj --main=gc gc.java
1 - now: false
2 - now: false

gcj --main=gc -Os gc.java
1 - now: false
2 - now: true

*/

-- 
           Summary: gcj: boolean value changes with -Os
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovidr at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

end of thread, other threads:[~2004-07-02  0:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-02  3:04 [Bug java/14818] New: gcj: boolean value changes with -Os ovidr at users dot sourceforge dot net
2004-04-02  3:16 ` [Bug java/14818] " pinskia at gcc dot gnu dot org
2004-04-02  3:24 ` pinskia at gcc dot gnu dot org
2004-04-02  4:02 ` ovidr at users dot sourceforge dot net
2004-07-02  0:30 ` pinskia 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).