This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add missing prototypes



I received warnings that exact_real_truncate and excluded_rtx had no
prototypes:

/cvs/gcc/gcc/expr.c:3164: warning: implicit declaration of function `exact_real_truncate'
/cvs/gcc/gcc/real.c:1073: warning: function declaration isn't a prototype
/cvs/gcc/gcc/gengenrtl.c:155: warning: function declaration isn't a prototype

Here's a patch.  Ok to commit?

Bootstrapped/regtested on i686-linux-gnu.

Andreas

2002-05-18  Andreas Jaeger  <aj@suse.de>

	* gengenrtl.c: Add prototype for excluded_rtx.

	* real.h: Add prototype for exact_real_truncate.

============================================================
Index: gcc/real.h
--- gcc/real.h	13 May 2002 04:50:11 -0000	1.41
+++ gcc/real.h	18 May 2002 09:34:57 -0000
@@ -180,6 +180,11 @@ extern REAL_VALUE_TYPE ereal_from_double
 extern REAL_VALUE_TYPE real_value_truncate PARAMS ((enum machine_mode,
                                                  REAL_VALUE_TYPE));
 
+/* Expansion of REAL_VALUE_TRUNCATE.
+   The result is in floating point, rounded to nearest or even.  */
+extern bool exact_real_truncate PARAMS ((enum machine_mode,
+					 REAL_VALUE_TYPE *));
+
 /* These return HOST_WIDE_INT: */
 /* Convert a floating-point value to integer, rounding toward zero.  */
 #define REAL_VALUE_FIX(x) (efixi (x))
============================================================
Index: gcc/gengenrtl.c
--- gcc/gengenrtl.c	13 May 2002 04:50:10 -0000	1.53
+++ gcc/gengenrtl.c	18 May 2002 09:38:44 -0000
@@ -1,5 +1,5 @@
 /* Generate code to allocate RTL structures.
-   Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -46,6 +46,7 @@ static const char *type_from_format	PARA
 static const char *accessor_from_format	PARAMS ((int));
 static int special_format		PARAMS ((const char *));
 static int special_rtx			PARAMS ((int));
+static int excluded_rtx			PARAMS ((int));
 static void find_formats		PARAMS ((void));
 static void gendecl			PARAMS ((const char *));
 static void genmacro			PARAMS ((int));

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]