Commit c7c50494 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Warning fixes:

	* alloc-pool.c: Don't include "libiberty.h".
	* config/sparc/gmon-sol2.c: Include <fcntl.h>.
	* convert.c (convert_to_real): Hide unused variable.

java:
	* lang.c (dump_compound_expr): Prototype.

From-SVN: r60900
parent 39b1af70
2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alloc-pool.c: Don't include "libiberty.h".
* config/sparc/gmon-sol2.c: Include <fcntl.h>.
* convert.c (convert_to_real): Hide unused variable.
2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (gtyp-gen.h): Const-ify. * Makefile.in (gtyp-gen.h): Const-ify.
......
...@@ -19,7 +19,6 @@ along with GCC; see the file COPYING. If not, write to the Free ...@@ -19,7 +19,6 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
#include "libiberty.h"
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
#include "alloc-pool.h" #include "alloc-pool.h"
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "tconfig.h" #include "tconfig.h"
#include "tsystem.h" #include "tsystem.h"
#include <fcntl.h> /* for creat() */
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
......
...@@ -107,12 +107,13 @@ tree ...@@ -107,12 +107,13 @@ tree
convert_to_real (type, expr) convert_to_real (type, expr)
tree type, expr; tree type, expr;
{ {
enum built_in_function fcode = builtin_mathfn_code (expr);
tree itype = TREE_TYPE (expr); tree itype = TREE_TYPE (expr);
/* Disable until we figure out how to decide whether the functions are /* Disable until we figure out how to decide whether the functions are
present in runtime. */ present in runtime. */
#if 0 #if 0
enum built_in_function fcode = builtin_mathfn_code (expr);
/* Convert (float)sqrt((double)x) where x is float into sqrtf(x) */ /* Convert (float)sqrt((double)x) where x is float into sqrtf(x) */
if ((fcode == BUILT_IN_SQRT if ((fcode == BUILT_IN_SQRT
|| fcode == BUILT_IN_SQRTL || fcode == BUILT_IN_SQRTL
......
2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lang.c (dump_compound_expr): Prototype.
2003-01-03 Tom Tromey <tromey@redhat.com> 2003-01-03 Tom Tromey <tromey@redhat.com>
Fix for PR java/8712: Fix for PR java/8712:
......
...@@ -78,6 +78,7 @@ static int inline_init_test_initialization PARAMS ((void * *, ...@@ -78,6 +78,7 @@ static int inline_init_test_initialization PARAMS ((void * *,
void *)); void *));
static bool java_can_use_bit_fields_p PARAMS ((void)); static bool java_can_use_bit_fields_p PARAMS ((void));
static int java_dump_tree PARAMS ((void *, tree)); static int java_dump_tree PARAMS ((void *, tree));
static void dump_compound_expr PARAMS ((dump_info_p, tree));
#ifndef TARGET_OBJECT_SUFFIX #ifndef TARGET_OBJECT_SUFFIX
# define TARGET_OBJECT_SUFFIX ".o" # define TARGET_OBJECT_SUFFIX ".o"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment