[patch] Move LOCAL_REGNO to defaults.h.
Kazu Hirata
kazu@cs.umass.edu
Tue Dec 9 03:34:00 GMT 2003
Hi,
Attached is a patch to move scattered definitions of LOCAL_REGNO to
defaults.h.
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
* defaults.h (LOCAL_REGNO): Give the default definition.
* flow.c (LOCAL_REGNO): Remove.
* reload1.c (LOCAL_REGNO): Likewise.
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.118
diff -u -r1.118 defaults.h
--- defaults.h 30 Oct 2003 02:02:33 -0000 1.118
+++ defaults.h 9 Dec 2003 03:26:46 -0000
@@ -685,4 +685,8 @@
fprintf ((FILE), "%s", reg_names[REGNO (RTX)])
#endif
+#ifndef LOCAL_REGNO
+#define LOCAL_REGNO(REGNO) 0
+#endif
+
#endif /* ! GCC_DEFAULTS_H */
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.567
diff -u -r1.567 flow.c
--- flow.c 6 Dec 2003 12:22:30 -0000 1.567
+++ flow.c 9 Dec 2003 03:26:48 -0000
@@ -159,9 +159,6 @@
#define HAVE_sibcall_epilogue 0
#endif
-#ifndef LOCAL_REGNO
-#define LOCAL_REGNO(REGNO) 0
-#endif
#ifndef EPILOGUE_USES
#define EPILOGUE_USES(REGNO) 0
#endif
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.415
diff -u -r1.415 reload1.c
--- reload1.c 30 Nov 2003 06:32:56 -0000 1.415
+++ reload1.c 9 Dec 2003 03:26:52 -0000
@@ -77,10 +77,6 @@
reload needs, spilling, assigning reload registers to use for
fixing up each insn, and generating the new insns to copy values
into the reload registers. */
-
-#ifndef LOCAL_REGNO
-#define LOCAL_REGNO(REGNO) 0
-#endif
/* During reload_as_needed, element N contains a REG rtx for the hard reg
into which reg N has been reloaded (perhaps for a previous insn). */
More information about the Gcc-patches
mailing list