diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-28 04:44:09 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-28 04:44:09 +0000 |
commit | ae6fd0a8686f5b3381c8a51947ec25a4ca48c701 (patch) | |
tree | 996ea71baffdec033124a780519ec47ed3bb21cf /gcc/defaults.h | |
parent | 10ea5dad8c009ce435ca9deaad191097f51c863b (diff) | |
download | gcc-ae6fd0a8686f5b3381c8a51947ec25a4ca48c701.tar.gz |
always define HAVE_simple_return and HAVE_return
gcc/ChangeLog:
2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* bb-reorder.c (HAVE_return): Don't check if its undefined.
* defaults.h (gen_simple_return): New function.
(gen_simple_return): Likewise.
(HAVE_return): Add default definition to false.
(HAVE_simple_return): Likewise.
* cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
HAVE_return and HAVE_simple_return are defined.
* function.c (gen_return_pattern): Likewise.
(convert_jumps_to_returns): Likewise.
(thread_prologue_and_epilogue_insns): Likewise.
* reorg.c (find_end_label): Likewise.
(dbr_schedule): Likewise.
* shrink-wrap.c: Likewise.
* shrink-wrap.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222505 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r-- | gcc/defaults.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h index 6f915bd29c2..d3da328ee47 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1398,6 +1398,26 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define TARGET_SUPPORTS_WIDE_INT 0 #endif +#ifndef HAVE_simple_return +#define HAVE_simple_return 0 +static inline rtx +gen_simple_return () +{ + gcc_unreachable (); + return NULL; +} +#endif + +#ifndef HAVE_return +#define HAVE_return 0 +static inline rtx +gen_return () +{ + gcc_unreachable (); + return NULL; +} +#endif + #endif /* GCC_INSN_FLAGS_H */ #endif /* ! GCC_DEFAULTS_H */ |