aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@superh.com>2003-06-19 10:44:44 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2003-06-19 11:44:44 +0100
commit676fceebc13d58097ff034f16fb08613ffbfe4ff (patch)
treecb9b8de513877cee7d33e9d71e1c4ad017c30bd5 /gcc
parentd5b73c26aceab86ff3eaf810eb77965771886fd4 (diff)
downloadgcc-676fceebc13d58097ff034f16fb08613ffbfe4ff.zip
gcc-676fceebc13d58097ff034f16fb08613ffbfe4ff.tar.gz
gcc-676fceebc13d58097ff034f16fb08613ffbfe4ff.tar.bz2
hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h has been included.
* hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h has been included. From-SVN: r68188
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/hooks.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6920174..fd7fd9c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
+ has been included.
+
2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
* config/sparc/sparc.c: Update copyright year.
diff --git a/gcc/hooks.h b/gcc/hooks.h
index d0abf88..e5dbcc6 100644
--- a/gcc/hooks.h
+++ b/gcc/hooks.h
@@ -23,7 +23,15 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GCC_HOOKS_H
bool hook_bool_void_false PARAMS ((void));
+
+/* Check if tm.h has been included, since ISO C does not allow forward
+ definitions for enums, and making hooks.h dependent on tm.h would create
+ unnecessary dependencies where no hook declaration involving
+ enum_reg_class is needed. */
+#ifdef REG_CLASS_CONTENTS
enum reg_class hook_reg_class_void_no_regs (void);
+#endif
+
bool hook_bool_bool_false (bool);
bool hook_bool_tree_false PARAMS ((tree));
bool hook_bool_tree_hwi_hwi_tree_false