This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: fix warning regression in java/jcf-parse.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Oct 2002 13:45:37 -0400 (EDT)
- Subject: Patch: fix warning regression in java/jcf-parse.c
Fixes:
> java/jcf-parse.c:318: warning: passing arg 2 of `real_from_target_fmt'
> from incompatible pointer type
This regressed after the recent float rewrite.
Note `buf' in this case is already an array and real_from_target_fmt()
is expecting a long* but is getting a long**.
Tested on sparc-sun-solaris2.7. No java regressions.
Ok to install?
Thanks,
--Kaveh
2002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* jcf-parse.c (get_constant): Fix typo in last change.
diff -rup orig/egcc-CVS20020928/gcc/java/jcf-parse.c egcc-CVS20020928/gcc/java/jcf-parse.c
--- orig/egcc-CVS20020928/gcc/java/jcf-parse.c 2002-09-21 16:00:26.000000000 -0400
+++ egcc-CVS20020928/gcc/java/jcf-parse.c 2002-09-29 12:00:35.292686042 -0400
@@ -315,7 +315,7 @@ get_constant (jcf, index)
else
buf[0] = lo, buf[1] = hi;
- real_from_target_fmt (&d, &buf, &ieee_double_format);
+ real_from_target_fmt (&d, buf, &ieee_double_format);
value = build_real (double_type_node, d);
break;
}