diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 10:44:44 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 10:44:44 +0000 |
commit | 56fcb878195b624fbd3be55d706e3bf4c01868b5 (patch) | |
tree | cb9b8de513877cee7d33e9d71e1c4ad017c30bd5 /gcc/hooks.h | |
parent | cb4ebfec53283bb8ab6cfaba9dd0d74898e2b222 (diff) | |
download | gcc-56fcb878195b624fbd3be55d706e3bf4c01868b5.tar.gz |
* hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
has been included.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68188 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hooks.h')
-rw-r--r-- | gcc/hooks.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/hooks.h b/gcc/hooks.h index d0abf889b95..e5dbcc6eebc 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 |