public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/6388: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
@ 2002-11-05 16:02 tromey
0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2002-11-05 16:02 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, mark, tromey
Synopsis: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
State-Changed-From-To: analyzed->closed
State-Changed-By: tromey
State-Changed-When: Tue Nov 5 16:02:03 2002
State-Changed-Why:
I've checked in the fix
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6388
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java/6388: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
@ 2002-06-12 10:06 tromey
0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2002-06-12 10:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, mark, nobody, tromey
Synopsis: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Wed Jun 12 10:06:04 2002
Responsible-Changed-Why:
I'm handling this.
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Wed Jun 12 10:06:04 2002
State-Changed-Why:
The lexer assumes that HOST_WIDE_INT is 32 bits,
leading to problems on PPC Linux, where it is 64 bits.
I wrote a first hacky patch, but it needs a rewrite.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6388
^ permalink raw reply [flat|nested] 3+ messages in thread
* java/6388: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
@ 2002-04-21 2:06 mark
0 siblings, 0 replies; 3+ messages in thread
From: mark @ 2002-04-21 2:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 6388
>Category: java
>Synopsis: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 21 02:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: mark@klomp.org
>Release: gcj 3.1
>Organization:
>Environment:
>Description:
The following program (compiled to byte or native code):
public class IT
{
public static void main(String[] args)
{
System.out.println(Integer.MIN_VALUE);
System.out.println(0x80000000);
System.out.println(Integer.MIN_VALUE == 0x80000000);
System.out.println(0x80000000 == 0x80000000);
}
}
Should produce the following output (as it does on i686):
-2147483648
-2147483648
true
true
But on powerpc it produces:
-2147483648
-2147483648
false
true
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-06 0:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05 16:02 java/6388: Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc tromey
-- strict thread matches above, loose matches on Subject: below --
2002-06-12 10:06 tromey
2002-04-21 2:06 mark
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).