[patch] [rd now.

This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


le border="0"> Index Nav: [Date I] [Subject Index] [Author Index] [Thread Index] Message Nav: [Date Prev] [Date Next] [Thread&;Prev] [Thread Next]

[patch] [rfa]: as.h: Bump OPTION_MD_BASE to 190, needed now.


I almost forgot: this is also needed for ld shaxation tests to pass,
or generally, for any target when using any long option.
Someone forgot to bump OPTION_MD_BASE with tast std_longopts
additions.  This patch does not match my criteria for obviousness, so:

Ok to commit?

2000-10-29  Hans-Petilsson  <hp@bitrange.com>

	* as.h (OPTION_MD_BASE): Bump to 190.
	* as.c (parse_args) <std_longopts>: Add commebout the need to
	check OPTION_MD_BASE in as.h.

Index: as.h
===============================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.16
diff -p -c -r1.16 as.h
*** as.h	2000/10/11 20:24:32	1.16
--- as.00/10/29 17:38:07
*************** extern void *alloca ();
*** 105,112 ****
     150 isn't special; it's just an arbitrary noCII char value.  */
  #define OPTION_STD_BASE 150
  /* The first getopt value for machine-dependent long options.
!    170 g the standard options room to grow.  */
! #define OPTION_MD_BASE 170
  
  #ifdef DEBUG
  #undef NDEBUG
--- 105,112 ----
     isn't special; it's just an arbitrary non-ASCII char value.  */
  #define OPTION_STD_BASE 150
  /* The first getopt value fachine-dependent long options.
!    190 gives the standard options room to grow.  */
! #define OPTION_MD_BASE 190
  
  #ifde:jĀ:BU  #undef NDE=======================================
RCS file: /cvs/src/src/gs.c,v
retrieving revision 1.18
diff -p -c -r1.18 as.c
*** as.c	2000/10/17 20:08:37	1.18
--- as.c	2000/10/29 17:38:11
*********** parse_args (pargc, pargv)
*** 422,427 ****
--- 422,429 ----
      {"target-help", no_argument, NULL, OPTION_TARGET_HELP #define OPTION_WARN_FATAL (OPTION_STD_BASE + 20)
      {"fatal-warnings", no_argument, NULL, OPTION_WARN_FATAL}
+     /* Whou add options here, check that they do not collide with
+        OPTION_MD_BASE.  See as.h.  */
    };
  
    /* Construct option lists from the standard list and the target

brgds, H-P


le border="0"> Index Nav: [Date I] [Subject Index] [Author Index] [Thread Index] Message Nav: [Date Prev] [Date Next] [Thread&;Prev] [Thread Next]