From 6219c3ed8afbaf2ec3829a28ed8ab0fad5aab84d Mon Sep 17 00:00:00 2001 From: zack Date: Sat, 8 Jul 2000 06:21:13 +0000 Subject: [PATCH] 2000-07-03 Donn Terry (donnte@microsoft.com) * cppinit.c (print_help): split overlong line into ISO C89 maximum chunks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34922 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/cppinit.c | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e8b67e049a9..5048c23e1db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-03 Donn Terry (donnte@microsoft.com) + + * cppinit.c (print_help): split overlong line into ISO C89 + maximum chunks. + 2000-07-07 Zack Weinberg * cppexp.c: Update all code for new lexer interface. diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 9ce95caec52..f8dedee6566 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1692,6 +1692,8 @@ static void print_help () { fprintf (stderr, _("Usage: %s [switches] input output\n"), progname); + /* To keep the lines from getting too long for some compilers, limit + to about 500 characters (6 lines) per chunk. */ fputs (_("\ Switches:\n\ -include Include the contents of before other files\n\ @@ -1700,6 +1702,8 @@ Switches:\n\ -iwithprefix Add to the end of the system include path\n\ -iwithprefixbefore Add to the end of the main include path\n\ -isystem Add to the start of the system include path\n\ +"), stdout); + fputs (_("\ -idirafter Add to the end of the system include path\n\ -I Add to the end of the main include path\n\ -I- Fine-grained include path control; see info docs\n\ @@ -1707,6 +1711,8 @@ Switches:\n\ (dirs specified with -isystem will still be used)\n\ -nostdinc++ Do not search system include directories for C++\n\ -o Put output into \n\ +"), stdout); + fputs (_("\ -pedantic Issue all warnings demanded by strict ISO C\n\ -pedantic-errors Issue -pedantic warnings as errors instead\n\ -traditional Follow K&R pre-processor behaviour\n\ @@ -1714,11 +1720,15 @@ Switches:\n\ -lang-c Assume that the input sources are in C\n\ -lang-c89 Assume that the input sources are in C89\n\ -lang-c++ Assume that the input sources are in C++\n\ +"), stdout); + fputs (_("\ -lang-objc Assume that the input sources are in ObjectiveC\n\ -lang-objc++ Assume that the input sources are in ObjectiveC++\n\ -lang-asm Assume that the input sources are in assembler\n\ -lang-fortran Assume that the input sources are in Fortran\n\ -lang-chill Assume that the input sources are in Chill\n\ +"), stdout); + fputs (_("\ -std= Specify the conformance standard; one of:\n\ gnu89, gnu99, c89, c99, iso9899:1990,\n\ iso9899:199409, iso9899:1999\n\ @@ -1727,6 +1737,8 @@ Switches:\n\ -Wtrigraphs Warn if trigraphs are encountered\n\ -Wno-trigraphs Do not warn about trigraphs\n\ -Wcomment{s} Warn if one comment starts inside another\n\ +"), stdout); + fputs (_("\ -Wno-comment{s} Do not warn about comments\n\ -Wtraditional Warn if a macro argument is/would be turned into\n\ a string if -traditional is specified\n\ @@ -1734,24 +1746,32 @@ Switches:\n\ -Wundef Warn if an undefined macro is used by #if\n\ -Wno-undef Do not warn about testing undefined macros\n\ -Wimport Warn about the use of the #import directive\n\ +"), stdout); + fputs (_("\ -Wno-import Do not warn about the use of #import\n\ -Werror Treat all warnings as errors\n\ -Wno-error Do not treat warnings as errors\n\ -Wall Enable all preprocessor warnings\n\ -M Generate make dependencies\n\ -MM As -M, but ignore system header files\n\ +"), stdout); + fputs (_("\ -MD As -M, but put output in a .d file\n\ -MMD As -MD, but ignore system header files\n\ -MG Treat missing header file as generated files\n\ -g3 Include #define and #undef directives in the output\n\ -D Define a with string '1' as its value\n\ -D= Define a with as its value\n\ +"), stdout); + fputs (_("\ -A () Assert the to \n\ -A- () Disable the to \n\ -U Undefine \n\ -v Display the version number\n\ -H Print the name of header files as they are used\n\ -C Do not discard comments\n\ +"), stdout); + fputs (_("\ -dM Display a list of macro definitions active at end\n\ -dD Preserve macro definitions in output\n\ -dN As -dD except that only the names are preserved\n\ @@ -1759,6 +1779,8 @@ Switches:\n\ -ftabstop= Distance between tab stops for column reporting\n\ -P Do not generate #line directives\n\ -$ Do not allow '$' in identifiers\n\ +"), stdout); + fputs (_("\ -remap Remap file names when including files.\n\ --version Display version information\n\ -h or --help Display this information\n\ -- 2.11.4.GIT