This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Poison SMALL_REGISTER_CLASSES
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Nick Clifton <nickc at redhat dot com>, DJ Delorie <dj at redhat dot com>
- Date: Wed, 15 Feb 2012 19:36:28 +0100
- Subject: [patch] Poison SMALL_REGISTER_CLASSES
Hello,
While going through some old patches of mine, I noticed this:
config/rl78/rl78.h:#define SMALL_REGISTER_CLASSES 1
config/rx/rx.h:#define SMALL_REGISTER_CLASSES 0
Can't possibly work, that target macro was replaced with a hook.
Attached patch OK for trunk?
Ciao!
Steven
* system.h: Poison SMALL_REGISTER_CLASSES
Index: system.h
===================================================================
--- system.h (revision 184217)
+++ system.h (working copy)
@@ -807,7 +807,7 @@ extern void fancy_abort (const char *, i
LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP JUMP_ALIGN_MAX_SKIP \
CAN_DEBUG_WITHOUT_FP UNLIKELY_EXECUTED_TEXT_SECTION_NAME \
HOT_TEXT_SECTION_NAME LEGITIMATE_CONSTANT_P ALWAYS_STRIP_DOTDOT \
- OUTPUT_ADDR_CONST_EXTRA
+ OUTPUT_ADDR_CONST_EXTRA SMALL_REGISTER_CLASSES
/* Target macros only used for code built for the target, that have
moved to libgcc-tm.h or have never been present elsewhere. */