aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>1996-12-07 11:53:42 -0500
committerBrendan Kehoe <brendan@gcc.gnu.org>1996-12-07 11:53:42 -0500
commit610c62ac70ceda33a0bf569819478e86913db62f (patch)
treeef5b48a7fc3e42e7a6b0e8852ce62593c45b4ff8 /gcc/gcc.c
parent86fda5667eafe38af457d9d20b29cc98b5176cf8 (diff)
downloadgcc-610c62ac70ceda33a0bf569819478e86913db62f.zip
gcc-610c62ac70ceda33a0bf569819478e86913db62f.tar.gz
gcc-610c62ac70ceda33a0bf569819478e86913db62f.tar.bz2
Makefile.in (DRIVER_DEFINES): New macro, with the macro definitions for the driver.
* Makefile.in (DRIVER_DEFINES): New macro, with the macro definitions for the driver. (gcc.o): Make rule use $(DRIVER_DEFINES). * gcc.c (process_command) [LANG_SPECIFIC_DRIVER]: Call lang_specific_driver, passing along the addr of FATAL for errors along with our ARGC and ARGV. From-SVN: r13222
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 123796a..876c896 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2305,6 +2305,11 @@ process_command (argc, argv)
/* Convert new-style -- options to old-style. */
translate_options (&argc, &argv);
+#ifdef LANG_SPECIFIC_DRIVER
+ /* Do language-specific adjustment/addition of flags. */
+ lang_specific_driver (&fatal, &argc, &argv);
+#endif
+
/* Scan argv twice. Here, the first time, just count how many switches
there will be in their vector, and how many input files in theirs.
Here we also parse the switches that cc itself uses (e.g. -v). */