This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch][spu] Don't include middle-end headers in spu-c.c
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, David Edelsohn <dje at gcc dot gnu dot org>
- Date: Wed, 26 May 2010 16:25:57 +0200
- Subject: [patch][spu] Don't include middle-end headers in spu-c.c
Hi,
Just don't include what it doesn't need. One more RTL dependency gone
from the front ends.
Tested by building a cross to spu-unknown-elf and verifying that there
are no warnings/errors.
OK for trunk?
Ciao!
Steven
* config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
insn-config.h, insn-codes.h, recog.h, and optabs.h.
Index: config/spu/spu-c.c
===================================================================
--- config/spu/spu-c.c (revision 159867)
+++ config/spu/spu-c.c (working copy)
@@ -22,15 +22,8 @@
#include "tree.h"
#include "c-tree.h"
#include "c-pragma.h"
-#include "function.h"
-#include "rtl.h"
-#include "expr.h"
#include "tm_p.h"
#include "langhooks.h"
-#include "insn-config.h"
-#include "insn-codes.h"
-#include "recog.h"
-#include "optabs.h"
/* Keep the vector keywords handy for fast comparisons. */