aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-11-12 18:24:31 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-11-12 18:24:31 -0500
commit5a570aded7e26742020c1ef3942c85619d886bc0 (patch)
treee765b421951e799bc094f8e82b413abc033f057e /gcc/gcc.c
parentec0fb1631e33a2ff6d16e43379f221f01966d6da (diff)
downloadgcc-5a570aded7e26742020c1ef3942c85619d886bc0.zip
gcc-5a570aded7e26742020c1ef3942c85619d886bc0.tar.gz
gcc-5a570aded7e26742020c1ef3942c85619d886bc0.tar.bz2
(exit): If VMS, define as __posix_exit.
(option_map): Add define-macro and undefine-macro. From-SVN: r13150
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 8d50213..123796a 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -81,6 +81,10 @@ extern int pwait PROTO ((int, int *, int));
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
+#ifdef VMS
+#define exit __posix_exit
+#endif
+
/* Define O_RDONLY if the system hasn't defined it for us. */
#ifndef O_RDONLY
#define O_RDONLY 0
@@ -775,7 +779,7 @@ struct option_map option_map[] =
{"--comments", "-C", 0},
{"--compile", "-c", 0},
{"--debug", "-g", "oj"},
- {"--define-macro", "-D", "a"},
+ {"--define-macro", "-D", "aj"},
{"--dependencies", "-M", 0},
{"--dump", "-d", "a"},
{"--dumpbase", "-dumpbase", "a"},
@@ -787,7 +791,7 @@ struct option_map option_map[] =
{"--imacros", "-imacros", "a"},
{"--include", "-include", "a"},
{"--include-barrier", "-I-", 0},
- {"--include-directory", "-I", "a"},
+ {"--include-directory", "-I", "aj"},
{"--include-directory-after", "-idirafter", "a"},
{"--include-prefix", "-iprefix", "a"},
{"--include-with-prefix", "-iwithprefix", "a"},
@@ -830,7 +834,7 @@ struct option_map option_map[] =
{"--traditional", "-traditional", 0},
{"--traditional-cpp", "-traditional-cpp", 0},
{"--trigraphs", "-trigraphs", 0},
- {"--undefine-macro", "-U", "a"},
+ {"--undefine-macro", "-U", "aj"},
{"--use-version", "-V", "a"},
{"--user-dependencies", "-MM", 0},
{"--verbose", "-v", 0},