diff mbox

[3/4] remove unused TARGET_DEFERRED_OUTPUT_DEFS

Message ID 1437791820-17927-4-git-send-email-tbsaunde+gcc@tbsaunde.org
State New
Headers show

Commit Message

tbsaunde+gcc@tbsaunde.org July 25, 2015, 2:36 a.m. UTC
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

gcc/ChangeLog:

2015-07-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Remove.
	* defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Likewise.
	* doc/tm.texi: Regenerate.
	* doc/tm.texi.in (TARGET_DEFERRED_OUTPUT_DEFS): Remove
	documentation of TARGET_DEFERRED_OUTPUT_DEFS;
---
 gcc/config/rs6000/aix43.h | 5 -----
 gcc/defaults.h            | 6 ------
 gcc/doc/tm.texi           | 9 ---------
 gcc/doc/tm.texi.in        | 9 ---------
 4 files changed, 29 deletions(-)

Comments

Joseph Myers July 31, 2015, 12:11 a.m. UTC | #1
On Fri, 24 Jul 2015, tbsaunde+gcc@tbsaunde.org wrote:

> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
> 
> gcc/ChangeLog:
> 
> 2015-07-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
> 
> 	* config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Remove.
> 	* defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Likewise.
> 	* doc/tm.texi: Regenerate.
> 	* doc/tm.texi.in (TARGET_DEFERRED_OUTPUT_DEFS): Remove
> 	documentation of TARGET_DEFERRED_OUTPUT_DEFS;

Whether just removed or converted to a hook, any removed target macro 
should be poisoned in system.h to avoid new targets being added that 
accidentally define the macro without it being effective.
diff mbox

Patch

diff --git a/gcc/config/rs6000/aix43.h b/gcc/config/rs6000/aix43.h
index 5bcd40f..512a634 100644
--- a/gcc/config/rs6000/aix43.h
+++ b/gcc/config/rs6000/aix43.h
@@ -150,11 +150,6 @@  do {									\
 #undef LD_INIT_SWITCH
 #define LD_INIT_SWITCH "-binitfini"
 
-/* The IBM AIX 4.x assembler doesn't support forward references in
-   .set directives.  We handle this by deferring the output of .set
-   directives to the end of the compilation unit.  */
-#define TARGET_DEFERRED_OUTPUT_DEFS(DECL,TARGET) true
-
 /* This target uses the aix64.opt file.  */
 #define TARGET_USES_AIX64_OPT 1
 
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 8684c58..3ecf9fd 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -85,12 +85,6 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   while (0)
 #endif
 
-/* Decide whether to defer emitting the assembler output for an equate
-   of two values.  The default is to not defer output.  */
-#ifndef TARGET_DEFERRED_OUTPUT_DEFS
-#define TARGET_DEFERRED_OUTPUT_DEFS(DECL,TARGET) false
-#endif
-
 /* This is how to output the definition of a user-level label named
    NAME, such as the label on variable NAME.  */
 
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index faa3017..8495e5c 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -8272,15 +8272,6 @@  If @code{SET_ASM_OP} is defined, a default definition is provided which is
 correct for most systems.
 @end defmac
 
-@defmac TARGET_DEFERRED_OUTPUT_DEFS (@var{decl_of_name}, @var{decl_of_value})
-A C statement that evaluates to true if the assembler code which defines
-(equates) the symbol whose tree node is @var{decl_of_name} to have the value
-of the tree node @var{decl_of_value} should be emitted near the end of the
-current compilation unit.  The default is to not defer output of defines.
-This macro affects defines output by @samp{ASM_OUTPUT_DEF} and
-@samp{ASM_OUTPUT_DEF_FROM_DECLS}.
-@end defmac
-
 @defmac ASM_OUTPUT_WEAK_ALIAS (@var{stream}, @var{name}, @var{value})
 A C statement to output to the stdio stream @var{stream} assembler code
 which defines (equates) the weak symbol @var{name} to have the value
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 72a7f84..8f5f786 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -5840,15 +5840,6 @@  If @code{SET_ASM_OP} is defined, a default definition is provided which is
 correct for most systems.
 @end defmac
 
-@defmac TARGET_DEFERRED_OUTPUT_DEFS (@var{decl_of_name}, @var{decl_of_value})
-A C statement that evaluates to true if the assembler code which defines
-(equates) the symbol whose tree node is @var{decl_of_name} to have the value
-of the tree node @var{decl_of_value} should be emitted near the end of the
-current compilation unit.  The default is to not defer output of defines.
-This macro affects defines output by @samp{ASM_OUTPUT_DEF} and
-@samp{ASM_OUTPUT_DEF_FROM_DECLS}.
-@end defmac
-
 @defmac ASM_OUTPUT_WEAK_ALIAS (@var{stream}, @var{name}, @var{value})
 A C statement to output to the stdio stream @var{stream} assembler code
 which defines (equates) the weak symbol @var{name} to have the value