This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[FR30] Rmove compiler warning
- From: Anatoly Sokolov <aesok at post dot ru>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: nickc at redhat dot com
- Date: Fri, 5 Nov 2010 23:31:36 +0300
- Subject: [FR30] Rmove compiler warning
Hello.
This patch add #include "df.h" in fr30.c to remove compiler warning:
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -
Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -
pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style
-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I
../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/
opt/cfarm/gmp-4.2.4/include -I/opt/cfarm/mpfr-2.4.1/include -I/opt/cfarm/mpc-0.8
/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I
../libdecnumber \
../../gcc/gcc/config/fr30/fr30.c -o fr30.o
../../gcc/gcc/config/fr30/fr30.c: In function 'fr30_compute_frame_size':
../../gcc/gcc/config/fr30/fr30.c:242: warning: implicit declaration of function
'df_regs_ever_live_p'
OK to install?
* config/fr30/fr30.c: Include "df.h".
Index: gcc/config/fr30/fr30.c
===================================================================
--- gcc/config/fr30/fr30.c (revision 166360)
+++ gcc/config/fr30/fr30.c (working copy)
@@ -39,6 +39,7 @@
#include "obstack.h"
#include "except.h"
#include "function.h"
+#include "df.h"
#include "diagnostic-core.h"
#include "toplev.h"
#include "tm_p.h"
Anaroly.