This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

PATCH : let `size' accept `-f'


I recently had a compilation fail because I used gnu size instead of sysV68
size, and gnu size exited with an error value because of the `-f' flag.
The output of size was not processed by a program, only intended for a human
reading.
So, I would like to submit the following patch to the `size' program :

Philippe De Muyter  <phdm@macqel.be>

	* size.c (main): Accept silently `-f' option.

Index: size.c
===================================================================
RCS file: /cvs/src/src/binutils/size.c,v
retrieving revision 1.5
diff -u -p -r1.5 size.c
--- size.c	2000/04/07 04:34:50	1.5
+++ size.c	2000/05/09 16:31:09
@@ -120,7 +120,7 @@ main (argc, argv)
   bfd_init ();
   set_default_bfd_target ();
 
-  while ((c = getopt_long (argc, argv, "ABVdox", long_options,
+  while ((c = getopt_long (argc, argv, "ABVdfox", long_options,
 			   (int *) 0)) != EOF)
     switch (c)
       {
@@ -168,6 +168,13 @@ main (argc, argv)
 	  }
 	break;
 
+      case 'f': /* FIXME : Actually for sysv68, `-f' means `full format', i.e.
+		   `[fname:] M(.text) + N(.data) + O(.bss) + P(.comment) = Q'
+		   where `fname: ' appears only if there are >= 2 input files,
+		   and M, N, O, P, Q are expressed in decimal by default,
+		   hexa or octal if requested by `-x' or `-o'. */
+		/* For the moment, accept it silently */
+	/* Fall through */
       case 'A':
 	berkeley_format = 0;
 	break;

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