public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java @ 2006-01-04 21:43 pinskia at gcc dot gnu dot org 2006-01-06 19:17 ` [Bug java/25676] " tromey at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-01-04 21:43 UTC (permalink / raw) To: java-prs Testcase: class f { public static double g(double a, double b) { return Math.min(a, b); } public static void main(String a[]) { System.out.println (g(0.0, -0.0)); System.out.println (g(-0.0, 0.0)); } } ---- This should print -0.0 and -0.0. Currently it prints 0.0 -0.0 for x86-linux-gnu. Note it is okay to use MIN_EXPR/MAX_EXPR for integers though. -- Summary: Use of MIN_EXPR/MAX_EXPR is wrong for java Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/25676] Use of MIN_EXPR/MAX_EXPR is wrong for java 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org @ 2006-01-06 19:17 ` tromey at gcc dot gnu dot org 2006-02-04 22:36 ` tromey at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-01-06 19:17 UTC (permalink / raw) To: java-prs -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-01-06 19:17:30 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/25676] Use of MIN_EXPR/MAX_EXPR is wrong for java 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org 2006-01-06 19:17 ` [Bug java/25676] " tromey at gcc dot gnu dot org @ 2006-02-04 22:36 ` tromey at gcc dot gnu dot org 2006-02-04 23:34 ` tromey at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-02-04 22:36 UTC (permalink / raw) To: java-prs ------- Comment #1 from tromey at gcc dot gnu dot org 2006-02-04 22:36 ------- Testing a patch. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-01-06 19:17:30 |2006-02-04 22:36:29 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/25676] Use of MIN_EXPR/MAX_EXPR is wrong for java 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org 2006-01-06 19:17 ` [Bug java/25676] " tromey at gcc dot gnu dot org 2006-02-04 22:36 ` tromey at gcc dot gnu dot org @ 2006-02-04 23:34 ` tromey at gcc dot gnu dot org 2006-02-04 23:35 ` tromey at gcc dot gnu dot org 2006-02-04 23:36 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-02-04 23:34 UTC (permalink / raw) To: java-prs ------- Comment #2 from tromey at gcc dot gnu dot org 2006-02-04 23:34 ------- Subject: Bug 25676 Author: tromey Date: Sat Feb 4 23:34:06 2006 New Revision: 110599 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110599 Log: gcc/java PR java/25676: * builtins.c (max_builtin): Skip floating point 'max'. (min_builtin): Skip floating point 'min'. (check_for_builtin): Never return NULL_TREE. libjava PR java/25676: * testsuite/libjava.lang/pr25676.out: New file. * testsuite/libjava.lang/pr25676.java: New file. Added: trunk/libjava/testsuite/libjava.lang/pr25676.java trunk/libjava/testsuite/libjava.lang/pr25676.out Modified: trunk/gcc/java/ChangeLog trunk/gcc/java/builtins.c trunk/libjava/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/25676] Use of MIN_EXPR/MAX_EXPR is wrong for java 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org ` (2 preceding siblings ...) 2006-02-04 23:34 ` tromey at gcc dot gnu dot org @ 2006-02-04 23:35 ` tromey at gcc dot gnu dot org 2006-02-04 23:36 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-02-04 23:35 UTC (permalink / raw) To: java-prs ------- Comment #3 from tromey at gcc dot gnu dot org 2006-02-04 23:35 ------- Fix checked in. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/25676] Use of MIN_EXPR/MAX_EXPR is wrong for java 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org ` (3 preceding siblings ...) 2006-02-04 23:35 ` tromey at gcc dot gnu dot org @ 2006-02-04 23:36 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-04 23:36 UTC (permalink / raw) To: java-prs ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-04 23:36 ------- Fixed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25676 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-02-04 23:36 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-01-04 21:43 [Bug java/25676] New: Use of MIN_EXPR/MAX_EXPR is wrong for java pinskia at gcc dot gnu dot org 2006-01-06 19:17 ` [Bug java/25676] " tromey at gcc dot gnu dot org 2006-02-04 22:36 ` tromey at gcc dot gnu dot org 2006-02-04 23:34 ` tromey at gcc dot gnu dot org 2006-02-04 23:35 ` tromey at gcc dot gnu dot org 2006-02-04 23:36 ` 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).