diff --git a/mcpp-gcc.1 b/mcpp-gcc.1 index ac5cb64..bf6364a 100644 --- a/mcpp-gcc.1 +++ b/mcpp-gcc.1 @@ -16,6 +16,8 @@ and \fI\fR defaults to standard output. It takes the following options. .PP Commonly used options: +.IP "\fB-$, -fno-dollars-in-identifiers" +Forbid '$' in identifiers. .IP \fB-@MODE Specify preprocessing mode. MODE should be one of these 4: .IP " \fB-@std" @@ -26,6 +28,8 @@ special 'post-Standard' mode. K&R 1st mode. .IP " \fB-@oldprep, -@old" "old_preprocessor" mode (i.e. "Reiser model" cpp). +.IP " \fB-@compat" +Standard 'compatible' mode. .IP \fB-b Output #line lines in C source style (default: GCC style). .IP \fB-C @@ -34,21 +38,43 @@ Output also comments. Define as (default:1). .IP "\fB-D [=]" Define as . +.IP "\fB-dM, -dD" +Dump all current macro definitions to output stream. .IP "\fB-e " Change the default multi-byte character encoding to one of: euc_jp, gb2312, ksc5601, big5, sjis, iso2022_jp, utf8. .IP \fB-finput-charset= Same as -e . (Do not insert spaces around '='). +.IP \fB-f[no-]working-directory +(Don't) emit #line marks with current working directory. +.IP \fB-fstack-protector[-all] +Add defines for GCC stack protector. +.IP \fB-f[no-]exceptions +(Don't) add define for exception support. +.IP "\fB-fpic, -fPIC, -fpie, -fPIE" +Add defines for PIC/PIE code. .IP "\fB-I " Add to the #include search list. .IP \fB-I- Unset system or site specific include directories. .IP "\fB-include " Include the prior to the main input file. +.IP "\fB-isystem " +Look for include files in DIR, if not found in -I's. +.IP "\fB-iquote " +Look for #include "file" (with quotes) in DIR. .IP \fB-j Do not output the source line in diagnostics. +.IP \fB-k +Keep white spaces of input lines as they are. .IP "\fB-M, -MM, -MD, -MMD, -MP, -MQ target, -MT target, -MF file" Output source file dependency line for makefile. +.IP \fB-m32 +Change target CPU from x86_64, ppc64 to i386, ppc, respectively. +.IP \fB-m64 +Change target CPU from i386, ppc to x86_64, ppc64, respectively. +.IP \fB-[no-]mmx +(Un-)define __MMX__. .IP \fB-N Don't predefine any non-standard macros. .IP \fB-nostdinc @@ -83,8 +109,12 @@ Enable digraphs. Re-define the pre-defined macro __STDC_HOSTED__ as . .IP \fB-lang-c89 Same as -S1. +.IP "\fB-lang-c99, -lang-c9x" +Same as -S199901L. .IP \fB-lang-c++ Same as -+. +.IP \fB-lang-asm +Same as -a. .IP "\fB-pedantic, -pedantic-errors" Same as -W7. .IP "\fB-S " diff --git a/mcpp.1 b/mcpp.1 index d63e2a1..3570563 100644 --- a/mcpp.1 +++ b/mcpp.1 @@ -26,6 +26,8 @@ special 'post-Standard' mode. K&R 1st mode. .IP " \fB-@oldprep, -@old" "old_preprocessor" mode (i.e. "Reiser model" cpp). +.IP " \fB-@compat" +Standard 'compatible' mode. .IP \fB-C Output also comments. .IP "\fB-D [=]" @@ -41,8 +43,16 @@ Add to the #include search list. Unset system or site specific include directories. .IP \fB-j Do not output the source line in diagnostics. +.IP \fB-k +Keep white spaces of input lines as they are. .IP "\fB-M, -MM, -MD, -MMD, -MP, -MQ target, -MT target, -MF file" Output source file dependency line for makefile. +.IP \fB-m32 +Change target CPU from x86_64, ppc64 to i386, ppc, respectively. +.IP \fB-m64 +Change target CPU from i386, ppc to x86_64, ppc64, respectively. +.IP \fB-[no-]mmx +(Un-)define __MMX__. .IP \fB-N Don't predefine any non-standard macros. .IP "\fB-o " diff --git a/src/system.c b/src/system.c index 4e008fa..c304ddd 100644 --- a/src/system.c +++ b/src/system.c @@ -1418,11 +1418,16 @@ static void usage( "\nCommonly used options:\n", +#if COMPILER == GNUC +"-$ Forbid '$' in identifier.\n", +"-fno-dollars-in-identifiers Likewise.\n", +#endif "-@MODE Specify preprocessing mode. MODE should be one of these 4:\n", " -@std Standard conforming mode. (default)\n", " -@poststd, -@post special 'post-Standard' mode.\n", " -@kr K&R 1st mode.\n", " -@oldprep, -@old 'old_preprocessor' mode (i.e. 'Reiser model' cpp).\n", +" -@compat Standard 'compatible' mode.\n", #if COMPILER == MSC "-arch:SSE, -arch:SSE2 Define the macro _M_IX86_FP as 1, 2 respectively.\n", @@ -1438,6 +1443,9 @@ static void usage( "-C Output also comments.\n", "-D [=] Define as (default:1).\n", "-D [=] Define as .\n", +#if COMPILER == GNUC +"-dM,-dD Dump all current macro definitions to output stream.\n", +#endif "-e Change the default multi-byte character encoding to one of:\n", " euc_jp, gb2312, ksc5601, big5, sjis, iso2022_jp, utf8.\n", @@ -1447,6 +1455,11 @@ static void usage( #if COMPILER == GNUC "-finput-charset= Same as -e .\n", " (Don't insert spaces around '=').\n", +"-f[no-]working-directory (Don't) emit #line marks with current\n", +" working directory.\n", +"-fstack-protector[-all] Add defines for GCC stack protector.\n", +"-f[no-]exceptions (Don't) add define for exception support.\n", +"-fpic,-fPIC,-fpie,-fPIE Add defines for PIC/PIE code.\n" #endif #if COMPILER == MSC "-Fl Include the prior to the main input file.\n", @@ -1461,6 +1474,8 @@ static void usage( #if COMPILER == GNUC "-isysroot Change root of system header directory to .\n", "-include Include the prior to the main input file.\n", +"-isystem Look for include files in DIR, if not found in -I's.\n", +"-iquote Look for #include \"file\" (with quotes) in DIR.\n", #else "-I- Unset system or site specific include directories.\n", #endif @@ -1474,6 +1489,7 @@ static void usage( #if SYS_FAMILY == SYS_UNIX "-m32 Change target CPU from x86_64, ppc64 to i386, ppc, respectively.\n", "-m64 Change target CPU from i386, ppc to x86_64, ppc64, respectively.\n", +"-[no-]mmx (Un-)define __MMX__.\n", #endif "-N Don't predefine any non-standard macros.\n", @@ -1536,7 +1552,10 @@ static void usage( #if COMPILER == GNUC "-lang-c89 Same as -S1.\n", +"-lang-c99 Same as -S199901L.\n", +"-lang-c9x Likewise.\n", "-lang-c++ Same as -+.\n", +"-lang-asm Same as -a.\n", "-pedantic, -pedantic-errors Same as -W7.\n", "-S Redefine __STDC__ to .\n", #else