This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix warning in c-pragma.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix warning in c-pragma.c
- From: Andreas Jaeger <aj at suse dot de>
- Date: Fri, 31 Aug 2001 15:27:02 +0200
The appended patch fixes this warning:
/cvs/gcc/gcc/c-pragma.c:300: warning: implicit declaration of function `add_weak'
Bootstrapped/regtested on i686-linux.
Ok to commit?
Andreas
2001-08-31 Andreas Jaeger <aj@suse.de>
* Makefile.in (c-pragma.o): Add output.h.
* c-pragma.c: Include "output.h" for add_weak prototype.
============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in 2001/08/30 20:44:48 1.731
+++ gcc/Makefile.in 2001/08/31 07:46:43
@@ -1180,7 +1180,7 @@ c-aux-info.o : c-aux-info.c $(CONFIG_H)
flags.h toplev.h
c-convert.o : c-convert.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h toplev.h
c-pragma.o: c-pragma.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) function.h \
- c-pragma.h toplev.h $(GGC_H) $(TM_P_H)
+ c-pragma.h toplev.h output.h $(GGC_H) $(TM_P_H)
mbchar.o: mbchar.c $(CONFIG_H) $(SYSTEM_H) mbchar.h
graph.o: graph.c $(CONFIG_H) $(SYSTEM_H) toplev.h flags.h output.h $(RTL_H) \
function.h hard-reg-set.h $(BASIC_BLOCK_H) graph.h
============================================================
Index: gcc/c-pragma.c
--- gcc/c-pragma.c 2001/08/22 14:34:45 1.44
+++ gcc/c-pragma.c 2001/08/31 07:46:43
@@ -31,6 +31,7 @@ Software Foundation, 59 Temple Place - S
#include "ggc.h"
#include "c-lex.h"
#include "tm_p.h"
+#include "output.h"
#define BAD(msgid) do { warning (msgid); return; } while (0)
#define BAD2(msgid, arg) do { warning (msgid, arg); return; } while (0)
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj