This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove useless defines of DONT_ACCESS_GBLS_AFTER_EPILOGUE


"Joseph S. Myers" <joseph@codesourcery.com> writes:

> > I thought about that, but since the macro was never documented, and
> > hasn't been meaningful since 1997, and was only defined in the three
> > header files mentioned above (and the iq2000.h one was merely copied
> > from the mips.h at that), I didn't think it was worth it.  I don't
> > think anybody is going to add a use accidentally, and with the lack of
> > documentation and the lack of use I doubt it is defined in any
> > uncontributed backends.
> 
> It would not surprise me if someone were to contribute another back end in 
> future copied from an old version of one which defined this macro.  There 
> have certainly been enough instances of new back ends copied in part from 
> old (complete with generic comments copied from ancient versions of the 
> manual).

Here is a patch.  Tested by building the compiler on
i686-pc-linux-gnu.  OK for mainline?

Ian


2005-04-16  Ian Lance Taylor  <ian@airs.com>

	* system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.


Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.252
diff -u -r1.252 system.h
--- system.h	13 Apr 2005 09:13:27 -0000	1.252
+++ system.h	16 Apr 2005 15:42:36 -0000
@@ -733,7 +733,7 @@
 	NON_SAVING_SETJMP TARGET_LATE_RTL_PROLOGUE_EPILOGUE		   \
 	CASE_DROPS_THROUGH TARGET_BELL TARGET_BS TARGET_CR TARGET_DIGIT0   \
         TARGET_ESC TARGET_FF TARGET_NEWLINE TARGET_TAB TARGET_VT	   \
-        LINK_LIBGCC_SPECIAL
+        LINK_LIBGCC_SPECIAL DONT_ACCESS_GBLS_AFTER_EPILOGUE
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]