This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Prototype for safe_for_unsave
- To: gcc-patches at gcc dot gnu dot org
- Subject: Prototype for safe_for_unsave
- From: Andreas Jaeger <aj at suse dot de>
- Date: 20 Mar 2000 12:31:56 +0100
While compiling on mips-linux, I got:
/home/aj/builds/gcc/gcc/calls.c: In function `expand_call':
/home/aj/builds/gcc/gcc/calls.c:2027: warning: implicit declaration of function `safe_for_unsave'
IMO we should add a prototype, a patch is appended.
Andreas
2000-03-20 Andreas Jaeger <aj@suse.de>
* tree.h: Add prototype for safe_for_unsave.
============================================================
Index: gcc/tree.h
--- gcc/tree.h 2000/03/19 05:26:48 1.146
+++ gcc/tree.h 2000/03/20 11:27:47
@@ -2021,6 +2021,11 @@
/* If non-null, a language specific version of safe_for_unsave. */
extern int (*lang_safe_for_unsave) PARAMS ((tree));
+/* Return nonzero if it is safe to unsave EXPR, else return zero.
+ It is not safe to unsave EXPR if it contains any embedded RTL_EXPRs. */
+extern int safe_for_unsave PARAMS ((tree));
+
+
/* Return 1 if EXP contains a PLACEHOLDER_EXPR; i.e., if it represents a size
or offset that depends on a field within a record.
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de