summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-08 18:52:09 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-08 18:52:09 +0000
commit674c3b405ce43dae5f198aa418c2349a4988f429 (patch)
treebe0c125ea95f22783d35ea61f07fc9f89995ba26 /gcc
parent1d8939ef8a86ddde48263160eb6b70a8f991d355 (diff)
downloadgcc-674c3b405ce43dae5f198aa418c2349a4988f429.tar.gz
cppinit.c (init): Rename init_library.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cppinit.c6
-rw-r--r--gcc/gcc.c1
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 363513ad6ba..98cd34e3848 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 85a351ca3e4..12844d9ac91 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -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));
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 7a3c3640a46..d17cb13a6db 100644
--- 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__}}\