This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Poison some old target macros
- To: gcc-patches at gcc dot gnu dot org
- Subject: Poison some old target macros
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sun, 14 Oct 2001 18:54:51 +0100
- Cc: collison at gcc dot gnu dot org, "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
Joseph S. Myers wrote:-
> On Sun, 14 Oct 2001, Neil Booth wrote:
>
> > I suggest we poison such identifiers, and continue to do so in future
> > when removing target macros. Then we can more easily prevent these
> > regressions without having to look out for them.
>
> I agree that everything that has been moved to the target structure should
> be poisoned.
Here's a patch. Bootstrapping x86 Linux. OK to commit?
Neil.
* system.h: Poison old unused target macros.
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.104
diff -u -p -r1.104 system.h
--- system.h 2001/10/09 14:03:12 1.104
+++ system.h 2001/10/14 17:25:49
@@ -584,6 +584,16 @@ typedef union tree_node *tree;
#undef calloc
#undef strdup
#pragma GCC poison malloc realloc calloc strdup
+
+/* Old target macros that have moved to the target hooks structure. */
+ #pragma GCC poison ASM_OPEN_PAREN ASM_CLOSE_PAREN \
+ FUNCTION_PROLOGUE FUNCTION_EPILOGUE \
+ FUNCTION_END_PROLOGUE FUNCTION_BEGIN_EPILOGUE \
+ DECL_MACHINE_ATTRIBUTES COMP_TYPE_ATTRIBUTES INSERT_ATTRIBUTES \
+ VALID_MACHINE_DECL_ATTRIBUTE VALID_MACHINE_TYPE_ATTRIBUTE \
+ SET_DEFAULT_TYPE_ATTRIBUTES SET_DEFAULT_DECL_ATTRIBUTES \
+ MERGE_MACHINE_TYPE_ATTRIBUTES MERGE_MACHINE_DECL_ATTRIBUTES \
+ MD_INIT_BUILTINS MD_EXPAND_BUILTIN
#endif /* IN_GCC */
/* Note: not all uses of the `index' token (e.g. variable names and