]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 5 Jan 2003 05:27:45 +0000 (05:27 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 5 Jan 2003 05:27:45 +0000 (05:27 +0000)
* 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

gcc/ChangeLog
gcc/alloc-pool.c
gcc/config/sparc/gmon-sol2.c
gcc/convert.c
gcc/java/ChangeLog
gcc/java/lang.c

index c1e6b5279ec0aebe31ce637eb70921ebf463762f..9b984dba57ae9e023f72800c1c0a783def009ba8 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * Makefile.in (gtyp-gen.h): Const-ify.
index b84780aec1c7525411bf1146b55151f911ae4b42..2f5d04dab516d6a5b7eeed63a05dafaa2141966f 100644 (file)
@@ -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
 02111-1307, USA.  */
 
-#include "libiberty.h"
 #include "config.h"
 #include "system.h"
 #include "alloc-pool.h"
index c42badcf761f9ffc1216d8d2c23cb1440eb3a053..2fb8885119b1177ca0994e60ed026214fbb6ac55 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "tconfig.h"
 #include "tsystem.h"
+#include <fcntl.h> /* for creat() */
 #include "coretypes.h"
 #include "tm.h"
 
index 6c6a36e54f93c81a45be27d7f3645245a2816ad4..1ed70b53091dcf6f8942b83759cb3e66d3c1283e 100644 (file)
@@ -107,12 +107,13 @@ tree
 convert_to_real (type, expr)
      tree type, expr;
 {
-  enum built_in_function fcode = builtin_mathfn_code (expr);
   tree itype = TREE_TYPE (expr);
 
   /* Disable until we figure out how to decide whether the functions are
      present in runtime.  */
 #if 0
+  enum built_in_function fcode = builtin_mathfn_code (expr);
+
   /* Convert (float)sqrt((double)x) where x is float into sqrtf(x) */
   if ((fcode == BUILT_IN_SQRT
        || fcode == BUILT_IN_SQRTL
index e0723f2e7ab06d3add28d0d34c54ca1a34ec0ef9..8f3e2aa809bc9556b6fa7c8c4fa9490a95052ae0 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * lang.c (dump_compound_expr): Prototype.
+
 2003-01-03  Tom Tromey  <tromey@redhat.com>
 
        Fix for PR java/8712:
index 7c96531283f487633cbc1a1b9b264dc933b108f6..60a3845a12cdeeb4683d63dfc3983abcfe85c9b9 100644 (file)
@@ -78,6 +78,7 @@ static int inline_init_test_initialization PARAMS ((void * *,
                                                    void *));
 static bool java_can_use_bit_fields_p PARAMS ((void));
 static int java_dump_tree PARAMS ((void *, tree));
+static void dump_compound_expr PARAMS ((dump_info_p, tree));
 
 #ifndef TARGET_OBJECT_SUFFIX
 # define TARGET_OBJECT_SUFFIX ".o"