aboutsummaryrefslogtreecommitdiff
path: root/gcc/addresses.h
diff options
context:
space:
mode:
authorKito Cheng <kito@0xlab.org>2014-09-18 22:34:23 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2014-09-18 23:34:23 +0100
commitf1717f8df9419f72f384448de851f0cd8a64c46e (patch)
tree51ef7cf67814b3a880c9055544cea24abae3beb5 /gcc/addresses.h
parent2fb5f0da9dff6e7f4e394da90c0edcc333402217 (diff)
Add header guard to several header files.
2014-09-19 Kito Cheng <kito@0xlab.org> * except.h: Fix header guard. * addresses.h: Add missing header guard. * cfghooks.h: Likewise. * collect-utils.h: Likewise. * collect2-aix.h: Likewise. * conditions.h: Likewise. * cselib.h: Likewise. * dwarf2asm.h: Likewise. * graphds.h: Likewise. * graphite-scop-detection.h: Likewise. * gsyms.h: Likewise. * hw-doloop.h: Likewise. * incpath.h: Likewise. * ipa-inline.h: Likewise. * ipa-ref.h: Likewise. * ira-int.h: Likewise. * ira.h: Likewise. * lra-int.h: Likewise. * lra.h: Likewise. * lto-section-names.h: Likewise. * read-md.h: Likewise. * reload.h: Likewise. * rtl-error.h: Likewise. * sdbout.h: Likewise. * targhooks.h: Likewise. * tree-affine.h: Likewise. * xcoff.h: Likewise. * xcoffout.h: Likewise. From-SVN: r215365
Diffstat (limited to 'gcc/addresses.h')
-rw-r--r--gcc/addresses.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/addresses.h b/gcc/addresses.h
index e323b588794..3f0089a87f1 100644
--- a/gcc/addresses.h
+++ b/gcc/addresses.h
@@ -21,6 +21,9 @@ along with GCC; see the file COPYING3. If not see
MODE_BASE_REG_REG_CLASS, MODE_BASE_REG_CLASS and BASE_REG_CLASS.
Arguments as for the MODE_CODE_BASE_REG_CLASS macro. */
+#ifndef GCC_ADDRESSES_H
+#define GCC_ADDRESSES_H
+
static inline enum reg_class
base_reg_class (enum machine_mode mode ATTRIBUTE_UNUSED,
addr_space_t as ATTRIBUTE_UNUSED,
@@ -82,3 +85,5 @@ regno_ok_for_base_p (unsigned regno, enum machine_mode mode, addr_space_t as,
return ok_for_base_p_1 (regno, mode, as, outer_code, index_code);
}
+
+#endif /* GCC_ADDRESSES_H */