This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Simplify includes for regs.h
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 23 May 2010 16:08:43 +0200
- Subject: [patch] Simplify includes for regs.h
Hi,
regs.h includes basic-block.h to have machmode.h, via function.h.
Easier is to just include machmode.h...
Bootstrapped&tested on x86_64-unknown-linux-gnu.
OK for trunk?
Ciao!
Steven
* regs.h: Do not include obstack.h, basic-block.h. Include machmode.h
Index: regs.h
===================================================================
--- regs.h (revision 159759)
+++ regs.h (working copy)
@@ -22,9 +22,8 @@ along with GCC; see the file COPYING3.
#ifndef GCC_REGS_H
#define GCC_REGS_H
-#include "obstack.h"
+#include "machmode.h"
#include "hard-reg-set.h"
-#include "basic-block.h"
#define REG_BYTES(R) mode_size[(int) GET_MODE (R)]