From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28359 invoked by alias); 15 Apr 2002 16:46:02 -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 28332 invoked by uid 71); 15 Apr 2002 16:46:00 -0000 Resent-Date: 15 Apr 2002 16:46:00 -0000 Resent-Message-ID: <20020415164600.28331.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, corsepiu@faw.uni-ulm.de Received:(qmail 26471 invoked by uid 61); 15 Apr 2002 16:38:34 -0000 Message-Id:<20020415163834.26468.qmail@sources.redhat.com> Date: Mon, 15 Apr 2002 09:46:00 -0000 From: corsepiu@faw.uni-ulm.de Reply-To: corsepiu@faw.uni-ulm.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/6310: gcc -MF vs. depcomp X-SW-Source: 2002-04/txt/msg00779.txt.bz2 List-Id: >Number: 6310 >Category: preprocessor >Synopsis: gcc -MF vs. depcomp >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Apr 15 09:46:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ralf Corsepius >Release: gcc-3.0.5 (20020410) >Organization: >Environment: Linux i386/ELF >Description: automake > 1.4's depcomp uses "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" to compute dependencies. This basically causes it to invoke gcc this way: gcc -g -O2 -c hello.c -MT hello.o -MD -MP -MF .deps/hello.TPo Which now causes warning of this kind: gcc: unrecognized option `-MF' This has worked for gcc-3.0.x up to 3.0.4, but has stopped working with post-3.0.4 gcc's from the gcc-3.0-branch. AFAI understand, probably this patch below is the origin of this problem: 2002-03-24 Neil Booth preprocessor/3951 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF. >How-To-Repeat: Compile an arbitrary C-sources with gcc-3.0.5 from CVS/gcc-3-0-branch depcomp-style: Eg.: gcc -g -O2 -c hello.c -MT hello.o -MD -MP -MF deps/hello.TPo gcc: unrecognized option `-MF' >Fix: >Release-Note: >Audit-Trail: >Unformatted: