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]

[patch] Remove COLLECT_PARSE_FLAG.


Hi,

Attached is a patch to remove COLLECT_PARSE_FLAG.

It was introduced by

  http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01125.html

Its last use seems to have been removed by

  http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01020.html

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>

	* collect2.c (COLLECT_PARSE_FLAG): Remove.
	(main): Remove a reference to COLLECT_PARSE_FLAG
	* system.h: Poison COLLECT_PARSE_FLAG.
	* doc/tm.texi (COLLECT_PARSE_FLAG): Remove.

Index: collect2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/collect2.c,v
retrieving revision 1.165
diff -u -p -r1.165 collect2.c
--- collect2.c	23 Aug 2004 11:56:50 -0000	1.165
+++ collect2.c	1 Oct 2004 14:19:21 -0000
@@ -149,10 +149,6 @@ int do_collecting = 1;
 int do_collecting = 0;
 #endif
 
-#ifndef COLLECT_PARSE_FLAG
-#define COLLECT_PARSE_FLAG(FLAG)
-#endif
-
 /* Nonzero if we should suppress the automatic demangling of identifiers
    in linker error messages.  Set from COLLECT_NO_DEMANGLE.  */
 int no_demangle;
@@ -864,7 +860,6 @@ main (int argc, char **argv)
       {
 	if (! strcmp (argv[i], "-debug"))
 	  debug = 1;
-	COLLECT_PARSE_FLAG (argv[i]);
       }
     vflag = debug;
   }
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.228
diff -u -p -r1.228 system.h
--- system.h	27 Sep 2004 22:38:08 -0000	1.228
+++ system.h	1 Oct 2004 14:19:22 -0000
@@ -652,7 +652,8 @@ extern void fancy_abort (const char *, i
 	DBX_OUTPUT_STANDARD_TYPES BUILTIN_SETJMP_FRAME_VALUE		   \
 	SUNOS4_SHARED_LIBRARIES PROMOTE_FOR_CALL_ONLY			   \
 	SPACE_AFTER_L_OPTION NO_RECURSIVE_FUNCTION_CSE			   \
-	DEFAULT_MAIN_RETURN TARGET_MEM_FUNCTIONS EXPAND_BUILTIN_VA_ARG
+	DEFAULT_MAIN_RETURN TARGET_MEM_FUNCTIONS EXPAND_BUILTIN_VA_ARG	   \
+	COLLECT_PARSE_FLAG
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE	\
Index: doc/tm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.375
diff -u -p -r1.375 tm.texi
--- doc/tm.texi	1 Oct 2004 05:08:59 -0000	1.375
+++ doc/tm.texi	1 Oct 2004 14:19:25 -0000
@@ -7231,12 +7231,6 @@ This macro is effective only in a native
 part of a cross compiler always uses @command{nm} for the target machine.
 @end defmac
 
-@defmac COLLECT_PARSE_FLAG (@var{flag})
-Define this macro to be C code that examines @command{collect2} command
-line option @var{flag} and performs special actions if
-@command{collect2} needs to behave differently depending on @var{flag}.
-@end defmac
-
 @defmac REAL_NM_FILE_NAME
 Define this macro as a C string constant containing the file name to use
 to execute @command{nm}.  The default is to search the path normally for


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