cppinit.c (init): Rename init_library.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Mon, 8 Jan 2001 18:52:09 +0000 (18:52 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 8 Jan 2001 18:52:09 +0000 (18:52 +0000)
        * cppinit.c (init): Rename init_library.
        (cpp_create_reader): Update.
        * gcc.c (cpp_options): If -o given, use it as the target of
        any -M options.

From-SVN: r38805

gcc/ChangeLog
gcc/cppinit.c
gcc/gcc.c

index 363513ad6ba708196089e52d3a74178152f77621..98cd34e3848d8985626c269df388add34f6ae524 100644 (file)
@@ -1,3 +1,10 @@
+2001-01-08  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+        * cppinit.c (init): Rename init_library.
+        (cpp_create_reader): Update.
+        * gcc.c (cpp_options): If -o given, use it as the target of
+        any -M options.
+
 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm.c (arm_arch5e): New variable.
index 85a351ca3e47a6307c5589ae5080b8d056b5b58c..12844d9ac9122904c1d118e2034c52d6b4363bf3 100644 (file)
@@ -94,7 +94,7 @@ struct cpp_pending
 static void print_help                  PARAMS ((void));
 static void path_include               PARAMS ((cpp_reader *,
                                                 char *, int));
-static void init                       PARAMS ((void));
+static void init_library               PARAMS ((void));
 static void init_builtins              PARAMS ((cpp_reader *));
 static void append_include_chain       PARAMS ((cpp_reader *,
                                                 char *, int, int));
@@ -469,7 +469,7 @@ opt_comp (p1, p2)
    do anything depending on the platform and compiler.  */
 
 static void
-init ()
+init_library ()
 {
   static int initialized = 0;
 
@@ -499,7 +499,7 @@ cpp_create_reader (lang)
   cpp_reader *pfile;
 
   /* Initialise this instance of the library if it hasn't been already.  */
-  init ();
+  init_library ();
 
   pfile = (cpp_reader *) xcalloc (1, sizeof (cpp_reader));
 
index 7a3c3640a467e976fa4c6f2416a3bd34998131de..d17cb13a6db45814b1b3f0d962eccd53e0f87e03 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -587,6 +587,7 @@ static const char *cpp_options =
  %{std*} %{nostdinc*}\
  %{C} %{v} %{I*} %{P} %{$} %I\
  %{M} %{MM} %{MD:-M -MF %b.d} %{MMD:-MM -MF %b.d} %{MF} %{MG} %{MP} %{MQ} %{MT}\
+ %{M|MD|MM|MMD:%{o*:-MQ %*}}\
  %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
  %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\