[patch] Stop cutting off option names in --help

Nathanael Nerode neroden@twcny.rr.com
Sat Jul 12 02:44:00 GMT 2003


I think this would be a good thing to fix, even if the movement of
options to opts.c will fix it in the long run.  OK for mainline?

	* toplev.c: Don't cut off option names.

Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.803
diff -u -r1.803 toplev.c
--- toplev.c	9 Jul 2003 05:28:01 -0000	1.803
+++ toplev.c	10 Jul 2003 01:06:58 -0000
@@ -3943,7 +3943,7 @@
 	      undoc = 1;
 
 	      if (extra_warnings)
-		printf (_("  %-23.23s [undocumented]\n"), option);
+		printf (_("  %-23s [undocumented]\n"), option);
 	    }
 	  else if (*description == 0)
 	    continue;
@@ -3960,7 +3960,7 @@
 	      lang = description;
 	    }
 	  else
-	    printf ("  %-23.23s %s\n", option, _(description));
+	    printf ("  %-23s %s\n", option, _(description));
 	}
     }
 
@@ -4008,10 +4008,10 @@
 	      undoc = 1;
 
 	      if (extra_warnings)
-		printf (_("  -m%-23.23s [undocumented]\n"), option);
+		printf (_("  -m%-23s [undocumented]\n"), option);
 	    }
 	  else if (*description != 0)
-	    doc += printf ("  -m%-23.23s %s\n", option, _(description));
+	    doc += printf ("  -m%-23s %s\n", option, _(description));
 	}
 
 #ifdef TARGET_OPTIONS
@@ -4027,10 +4027,10 @@
 	      undoc = 1;
 
 	      if (extra_warnings)
-		printf (_("  -m%-23.23s [undocumented]\n"), option);
+		printf (_("  -m%-23s [undocumented]\n"), option);
 	    }
 	  else if (*description != 0)
-	    doc += printf ("  -m%-23.23s %s\n", option, _(description));
+	    doc += printf ("  -m%-23s %s\n", option, _(description));
 	}
 #endif
       if (undoc)

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html



More information about the Gcc-patches mailing list