From: Kaveh R. Ghazi Date: Sun, 5 Jan 2003 05:27:45 +0000 (+0000) Subject: Warning fixes: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7c50494beb707f6d374c23b7decbacb5e068a87;p=gcc.git Warning fixes: * alloc-pool.c: Don't include "libiberty.h". * config/sparc/gmon-sol2.c: Include . * convert.c (convert_to_real): Hide unused variable. java: * lang.c (dump_compound_expr): Prototype. From-SVN: r60900 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1e6b5279ec..9b984dba57a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-01-05 Kaveh R. Ghazi + + * alloc-pool.c: Don't include "libiberty.h". + * config/sparc/gmon-sol2.c: Include . + * convert.c (convert_to_real): Hide unused variable. + 2003-01-04 Kaveh R. Ghazi * Makefile.in (gtyp-gen.h): Const-ify. diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c index b84780aec1c..2f5d04dab51 100644 --- a/gcc/alloc-pool.c +++ b/gcc/alloc-pool.c @@ -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" diff --git a/gcc/config/sparc/gmon-sol2.c b/gcc/config/sparc/gmon-sol2.c index c42badcf761..2fb8885119b 100644 --- a/gcc/config/sparc/gmon-sol2.c +++ b/gcc/config/sparc/gmon-sol2.c @@ -34,6 +34,7 @@ #include "tconfig.h" #include "tsystem.h" +#include /* for creat() */ #include "coretypes.h" #include "tm.h" diff --git a/gcc/convert.c b/gcc/convert.c index 6c6a36e54f9..1ed70b53091 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -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 diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e0723f2e7ab..8f3e2aa809b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2003-01-05 Kaveh R. Ghazi + + * lang.c (dump_compound_expr): Prototype. + 2003-01-03 Tom Tromey Fix for PR java/8712: diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 7c96531283f..60a3845a12c 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -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"