diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-05 07:50:24 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-05 07:50:24 +0000 |
commit | a5a4ce3c3c0eee620f62210898d661a3b05f283a (patch) | |
tree | 4a7fde9382b70c566caa911a671a363b63d0df58 /gcc/java | |
parent | 97fc4caf7d18cd4aaa2a31a55c68b4a4ec7deb36 (diff) | |
download | gcc-a5a4ce3c3c0eee620f62210898d661a3b05f283a.zip gcc-a5a4ce3c3c0eee620f62210898d661a3b05f283a.tar.gz gcc-a5a4ce3c3c0eee620f62210898d661a3b05f283a.tar.bz2 |
cpp.texi: Update for -MP.
* cpp.texi: Update for -MP. Clarify behaviour of -MT.
* cppinit.c (initialize_dependency_output): Update.
(cpp_finish): Output dummy targets for -MP.
(OPT_MP): New.
(cpp_handle_option): Handle -MP. Don't quote -MT options.
* cpplib.h (struct cpp_options): Add deps_phony_targets.
* gcc.c (cpp_options): Update to handle -MP.
* mkdeps.c (deps_add_target, deps_add_default_target): Update
to quote only the default target.
(deps_phony_targets): Insert a preceding newline. Rename from
deps_dummy_targets for consistency.
* mkdeps.h: Update
java:
* lang.c (lang_decode_option): Change -MA to -MP.
* jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target):
Update to new prototype; do quote targets.
(jcf_dependency_write): Update.
From-SVN: r38707
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/jcf-depend.c | 8 | ||||
-rw-r--r-- | gcc/java/lang.c | 5 |
3 files changed, 14 insertions, 6 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index c52b529..0b8306b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2001-01-04 Neil Booth <neil@daikokuya.demon.co.uk> + + * lang.c (lang_decode_option): Change -MA to -MP. + * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target): + Update to new prototype; do quote targets. + (jcf_dependency_write): Update. + 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz> Shorten primitive array allocation path: diff --git a/gcc/java/jcf-depend.c b/gcc/java/jcf-depend.c index 501e239..c999560 100644 --- a/gcc/java/jcf-depend.c +++ b/gcc/java/jcf-depend.c @@ -1,6 +1,6 @@ /* Functions for handling dependency tracking when reading .class files. - Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -74,7 +74,7 @@ jcf_dependency_set_target (name) { /* We just handle this the same as an `add_target'. */ if (dependencies != NULL && name != NULL) - deps_add_target (dependencies, name); + deps_add_target (dependencies, name, 1); } void @@ -82,7 +82,7 @@ jcf_dependency_add_target (name) const char *name; { if (dependencies != NULL) - deps_add_target (dependencies, name); + deps_add_target (dependencies, name, 1); } void @@ -138,6 +138,6 @@ jcf_dependency_write () deps_write (dependencies, dep_out, 72); if (print_dummies) - deps_dummy_targets (dependencies, dep_out); + deps_phony_targets (dependencies, dep_out); fflush (dep_out); } diff --git a/gcc/java/lang.c b/gcc/java/lang.c index b90abdb..7565eba9 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -1,5 +1,6 @@ /* Java(TM) language-specific utility routines. - Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -340,7 +341,7 @@ lang_decode_option (argc, argv) dependency_tracking |= DEPEND_ENABLE; return 1; } - else if (strcmp (p, "-MA") == 0) + else if (strcmp (p, "-MP") == 0) { jcf_dependency_print_dummies (); return 1; |