This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 00/12] Reduce conditional compilation
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Cc: Trevor Saunders <tbsaunde+gcc at tbsaunde dot org>
- Date: Tue, 21 Apr 2015 09:24:06 -0400
- Subject: [PATCH 00/12] Reduce conditional compilation
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
Hi,
This is a first round of patches to reduce the amount of code with in #if /
#ifdef. This makes it incrementally easier to not break configs other than the
one being built, and moves things slightly closer to using target hooks for
everything.
each commit bootstrapped and regtested on x86_64-linux-gnu without regression,
and whole patch set run through config-list.mk without issue, ok?
Trevor Saunders (12):
add default definition of EH_RETURN_DATA_REGNO
remove some ifdef HAVE_cc0
more HAVE_cc0
always define HAVE_cc0
make some HAVE_cc0 code always compiled
provide default for RETURN_ADDR_OFFSET
provide default for MASK_RETURN_ADDR
reduce conditional compilation for HARD_FRAME_POINTER_IS_FRAME_POINTER
remove #if for PIC_OFFSET_TABLE_REGNUM
remove more ifdefs for HAVE_cc0
provide default for INSN_SETS_ARE_DELAYED
add default for INSN_REFERENCES_ARE_DELAYED
gcc/alias.c | 7 ++---
gcc/builtins.c | 2 --
gcc/caller-save.c | 4 +--
gcc/cfgcleanup.c | 26 +++++-----------
gcc/cfgrtl.c | 12 ++------
gcc/combine.c | 84 ++++++++++++++++++---------------------------------
gcc/conditions.h | 6 ----
gcc/cprop.c | 4 +--
gcc/cse.c | 22 +-------------
gcc/defaults.h | 23 ++++++++++++++
gcc/df-problems.c | 9 ++----
gcc/df-scan.c | 46 +++++++++++-----------------
gcc/emit-rtl.c | 8 ++---
gcc/except.c | 26 ++++++----------
gcc/final.c | 43 ++++++++++++--------------
gcc/function.c | 5 ++-
gcc/gcse.c | 24 ++++++++-------
gcc/genconfig.c | 1 +
gcc/haifa-sched.c | 5 +--
gcc/ira-lives.c | 2 --
gcc/ira.c | 33 +++++++++-----------
gcc/jump.c | 3 --
gcc/loop-invariant.c | 4 +--
gcc/lra-constraints.c | 6 ++--
gcc/lra-lives.c | 2 --
gcc/optabs.c | 2 +-
gcc/postreload.c | 4 +--
gcc/recog.c | 2 --
gcc/recog.h | 2 --
gcc/reginfo.c | 5 ++-
gcc/regrename.c | 5 ++-
gcc/reload.c | 12 +++-----
gcc/reload1.c | 10 +++---
gcc/reorg.c | 68 ++++++++++-------------------------------
gcc/resource.c | 15 +++------
gcc/rtlanal.c | 2 --
gcc/sched-deps.c | 5 +--
gcc/sched-rgn.c | 4 +--
gcc/simplify-rtx.c | 5 ++-
39 files changed, 199 insertions(+), 349 deletions(-)
--
2.3.0.80.g18d0fec.dirty