diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-08-21 01:15:15 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-08-21 01:15:15 +0000 |
commit | 70b0dcce28f993b2d6fcf7851bc8aadc7b60c38d (patch) | |
tree | 148ab7c7f4a32375fc7afc89ae7ea46b5927cd79 | |
parent | 913b71f183a5e20aa8ad61534593053e096e405d (diff) | |
download | gcc-70b0dcce28f993b2d6fcf7851bc8aadc7b60c38d.zip gcc-70b0dcce28f993b2d6fcf7851bc8aadc7b60c38d.tar.gz gcc-70b0dcce28f993b2d6fcf7851bc8aadc7b60c38d.tar.bz2 |
always define HAVE_peephole2
gcc/ChangeLog:
2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* genconfig.c (main): Always define HAVE_cc0.
* recog.c (rest_of_handle_peephole2): Adjust.
From-SVN: r227051
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genconfig.c | 5 | ||||
-rw-r--r-- | gcc/recog.c | 8 |
3 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5debcca..2943501 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + * genconfig.c (main): Always define HAVE_cc0. + * recog.c (rest_of_handle_peephole2): Adjust. + +2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + * reorg.c (relax_delay_slots): Don't use #if to check value of HAVE_cc0. diff --git a/gcc/genconfig.c b/gcc/genconfig.c index acbf381..fc3c1eb 100644 --- a/gcc/genconfig.c +++ b/gcc/genconfig.c @@ -372,6 +372,11 @@ main (int argc, char **argv) printf ("#define HAVE_peephole2 1\n"); printf ("#define MAX_INSNS_PER_PEEP2 %d\n", max_insns_per_peep2); } + else + { + printf ("#define HAVE_peephole2 0\n"); + printf ("#define MAX_INSNS_PER_PEEP2 0\n"); + } puts ("\n#endif /* GCC_INSN_CONFIG_H */"); diff --git a/gcc/recog.c b/gcc/recog.c index c595bbd..352aec2 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -3018,7 +3018,6 @@ split_all_insns_noflow (void) return 0; } -#ifdef HAVE_peephole2 struct peep2_insn_data { rtx_insn *insn; @@ -3651,7 +3650,6 @@ peephole2_optimize (void) if (peep2_do_cleanup_cfg) cleanup_cfg (CLEANUP_CFG_CHANGED); } -#endif /* HAVE_peephole2 */ /* Common predicates for use with define_bypass. */ @@ -3804,9 +3802,9 @@ if_test_bypass_p (rtx_insn *out_insn, rtx_insn *in_insn) static unsigned int rest_of_handle_peephole2 (void) { -#ifdef HAVE_peephole2 - peephole2_optimize (); -#endif + if (HAVE_peephole2) + peephole2_optimize (); + return 0; } |