Patchwork [FR30] Rmove compiler warning

login
register
mail settings
Submitter Anatoly Sokolov
Date Nov. 5, 2010, 8:31 p.m.
Message ID <1568160543.20101105233136@post.ru>
Download mbox | patch
Permalink /patch/70293/
State New
Headers show

Comments

Anatoly Sokolov - Nov. 5, 2010, 8:31 p.m.
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".




Anaroly.
Nick Clifton - Nov. 8, 2010, 10:20 a.m.
Hi Anatoly,

>          * config/fr30/fr30.c: Include "df.h".

Approved - please apply.

Cheers
   Nick

Patch

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"