c/1590: -Wp,-MDfoo.o no longer works -- as of 2001-01-07 change

jim@meyering.net jim@meyering.net
Tue Jan 9 01:46:00 GMT 2001


>Number:         1590
>Category:       c
>Synopsis:       -Wp,-MDfoo.o no longer works -- as of 2001-01-07 change
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 09 01:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jim Meyering
>Release:        2.97 20010108 (experimental)
>Organization:
>Environment:
System: Linux ixi.eng.ascend.com 2.2.17 #3 SMP Wed Sep 20 19:24:00 CEST 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /mirror/d/egcs/configure --disable-nls --prefix=/p/p/gcc-2001-01-09.04h40
>Description:
The -Wp,-MDfoo.o option no longer works -- as of this change:

2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>

        * c-lang.c (c_post_options): Call cpp_post_options.
	* objc/objc-act.c (objc_post_options): Similarly.
	* cppmain.c (main): Similarly.
        * fix-header.c (read_scan_file): Similarly.
        * cppinit.c (cpp_start_read): Move option consistency checks
        to cpp_post_options.  Don't call init_dependency_output.
        If needed, add default target and main file dependency.
        (OPT_MD, OPT_MMD): Remove.
        (OPT_MF): New.
        (cpp_handle_option): Update for OPT_* changes.
        (cpp_post_options): New.
        (init_dependency_output): Command line -MF overrides environment
        variables.  Don't set default target etc.  Suppress output
        if dependencies are going to stdout.
        (print_help): Update.
        * cpplib.h (cpp_post_options): New.
        * gcc.c (cpp_options): Update for -MD, -MMD, -MF.

FYI, I noticed this because depcomp (a script from automake)
invokes gcc with `-Wp,-MD.deps/FILE.d', and many GNU packages
use depcomp to compute dependencies.

>How-To-Repeat:
    $ touch k.c
    $ /p/p/gcc-2001-01-07.04h08/bin/gcc -c k.c -Wp,-MD.deps/k.d
    $ /p/p/gcc-2001-01-08.04h21/bin/gcc -c k.c -Wp,-MD.deps/k.d
    cc1: Unrecognized option `-MD.deps/k.d'
    [Exit 1]
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list