This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]