Makefile.in (DRIVER_DEFINES): New macro, with the macro definitions for the driver.
authorBrendan Kehoe <brendan@gcc.gnu.org>
Sat, 7 Dec 1996 16:53:42 +0000 (11:53 -0500)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Sat, 7 Dec 1996 16:53:42 +0000 (11:53 -0500)
        * 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

gcc/Makefile.in
gcc/gcc.c

index 0f558d16a0d4f4de3f929a72d9f731b55a03899a..ff72925f39c9ad08487b4e26ff34e6bdabe923a7 100644 (file)
@@ -1206,13 +1206,15 @@ c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
 
 # Language-independent files.
 
-gcc.o: gcc.c $(CONFIG_H) multilib.h config.status $(lang_specs_files)
-       $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+DRIVER_DEFINES = \
   -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
   -DDEFAULT_TARGET_VERSION=\"$(version)\" \
   -DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \
-  -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \
+  -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\"
+gcc.o: gcc.c $(CONFIG_H) multilib.h config.status $(lang_specs_files)
+       $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+  $(DRIVER_DEFINES) \
   -c `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
 
 dumpvers: dumpvers.c
index 123796a5b519cb1877b1d091fcf768e03408db81..876c8967edc2e42f65f273fb68d624ccdabf571b 100644 (file)
--- 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).  */