Skip to content

Commit

Permalink
gcc/java:
Browse files Browse the repository at this point in the history
	* jcf-dump.c (print_constant): Cast first frexp arg.

	libjava:
	* exception.cc (std::abort): Remove static.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177612 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ro committed Aug 10, 2011
1 parent 0e3f4c5 commit df2fb93
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions gcc/java/ChangeLog
@@ -1,3 +1,7 @@
2011-08-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* jcf-dump.c (print_constant): Cast first frexp arg.

2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS).
Expand Down
4 changes: 2 additions & 2 deletions gcc/java/jcf-dump.c
Expand Up @@ -790,7 +790,7 @@ print_constant (FILE *out, JCF *jcf, int index, int verbosity)
/* Normal; add the implicit bit. */
mantissa |= ((uint32)1 << 23);

f = frexp (mantissa, &dummy);
f = frexp ((float) mantissa, &dummy);
f = ldexp (f, exponent + 1);
fprintf (out, "%.10g", f);
}
Expand Down Expand Up @@ -833,7 +833,7 @@ print_constant (FILE *out, JCF *jcf, int index, int verbosity)
/* Normal; add the implicit bit. */
mantissa |= ((uint64)1 << 52);

d = frexp (mantissa, &dummy);
d = frexp ((double) mantissa, &dummy);
d = ldexp (d, exponent + 1);
fprintf (out, "%.20g", d);
}
Expand Down
4 changes: 4 additions & 0 deletions libjava/ChangeLog
@@ -1,3 +1,7 @@
2011-08-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* exception.cc (std::abort): Remove static.

2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* configure.ac (THREADS): Remove posix95.
Expand Down
5 changes: 3 additions & 2 deletions libjava/exception.cc
@@ -1,6 +1,7 @@
// Functions for Exception Support for Java.

/* Copyright (C) 1998, 1999, 2001, 2002, 2006, 2010 Free Software Foundation
/* Copyright (C) 1998, 1999, 2001, 2002, 2006, 2010, 2011
Free Software Foundation
This file is part of libgcj.
Expand All @@ -24,7 +25,7 @@ details. */
// stdlib.h's abort().
namespace std
{
static __attribute__ ((__noreturn__)) void
__attribute__ ((__noreturn__)) void
abort ()
{
::abort ();
Expand Down

0 comments on commit df2fb93

Please sign in to comment.