From: Tom Tromey Date: Wed, 10 Jan 2001 21:21:18 +0000 (+0000) Subject: * depcomp: Handle gcc 3. X-Git-Tag: Release-1-4d~123 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b7ba775bd10f03dea91ab6fa28bc0210974a5f24;p=automake.git * depcomp: Handle gcc 3. --- diff --git a/ChangeLog b/ChangeLog index 8a317f66..cf3597fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-01-10 Tom Tromey + + * depcomp: Handle gcc 3. + 2000-12-23 Tom Tromey * configure.in: Updated to 1.4c for cvs. diff --git a/depcomp b/depcomp index 0a92302e..3d5901df 100755 --- a/depcomp +++ b/depcomp @@ -48,6 +48,14 @@ if test "$depmode" = dashXmstdout; then fi case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! + if "$@" -MT "$object" -MF "$depfile" -M -MP; then + exit $? + fi + ;; + gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: diff --git a/lib/depcomp b/lib/depcomp index 0a92302e..3d5901df 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -48,6 +48,14 @@ if test "$depmode" = dashXmstdout; then fi case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! + if "$@" -MT "$object" -MF "$depfile" -M -MP; then + exit $? + fi + ;; + gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: