From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29448 invoked by alias); 9 Mar 2002 21:16:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29402 invoked by uid 71); 9 Mar 2002 21:16:02 -0000 Date: Sat, 09 Mar 2002 13:16:00 -0000 Message-ID: <20020309211602.29401.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: preprocessor/5899: -M disables -dM Reply-To: Neil Booth X-SW-Source: 2002-03/txt/msg00302.txt.bz2 List-Id: The following reply was made to PR preprocessor/5899; it has been noted by GNATS. From: Neil Booth To: Andreas Schwab Cc: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/5899: -M disables -dM Date: Sat, 9 Mar 2002 21:08:49 +0000 Andreas Schwab wrote:- > glibc uses the equivalent functionality provided by SUNPRO_DEPENDENCIES: Ah, OK. Would you confirm this works for you? If so, I'll send a formal patch and explicitly document this behaviour. Neil. Index: cppinit.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/cppinit.c,v retrieving revision 1.202 diff -u -p -r1.202 cppinit.c --- cppinit.c 2002/02/23 13:42:40 1.202 +++ cppinit.c 2002/03/09 21:06:21 @@ -1886,11 +1886,9 @@ init_dependency_output (pfile) with -o. out_fname is non-NULL here. */ CPP_OPTION (pfile, deps_file) = CPP_OPTION (pfile, out_fname); - /* When doing dependencies, we should suppress all output, including - -dM, -dI etc. */ + /* When doing dependencies, suppress normal preprocessed output. + Still do -dM, -dI etc. as e.g. glibc depends on this. */ CPP_OPTION (pfile, no_output) = 1; - CPP_OPTION (pfile, dump_macros) = 0; - CPP_OPTION (pfile, dump_includes) = 0; } /* Handle --help output. */