Bug 705196 - gcc produce a broken .dep file which cause make cannot compute dependency correctly
Summary: gcc produce a broken .dep file which cause make cannot compute dependency cor...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 14
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 22:39 UTC by Howard Su
Modified: 2011-05-17 09:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-17 09:11:37 UTC
Type: ---


Attachments (Terms of Use)

Description Howard Su 2011-05-16 22:39:49 UTC
Description of problem:
the dependency file gcc produced a broken file

Version-Release number of selected component (if applicable):
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

How reproducible:
consistantly

Steps to Reproduce:
1.create a simple a.c like following
      int a() {}
2. run the following command to compile
   gcc -c -Wp,-MD,a.o.dep -Wp,-MT,a.o -Wp,-MP -o a.o a.c
  
Actual results:
$cat a.o.dep
a.o a.o: a.c

Expected results:
$cat a.o.dep
a.o: a.c


Additional info:

Comment 1 Howard Su 2011-05-17 03:26:51 UTC
Linux amd64 version only

Comment 2 Jakub Jelinek 2011-05-17 09:11:37 UTC
gcc -v 2>&1 | egrep 'Target|gcc version'; gcc -c -Wp,-MD,a.o.dep -Wp,-MT,a.o -Wp,-MP -o a.o a.c; cat a.o.dep
Target: x86_64-redhat-linux
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) 
a.o: a.c

Can't reproduce.


Note You need to log in before you can comment on or make changes to this bug.