Mail Archives: djgpp/2002/02/10/11:07:10
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in
news:Pine DOT SUN DOT 3 DOT 91 DOT 1020210135041 DOT 15572M-100000 AT is:
>
> On Sun, 10 Feb 2002, Sven Sandberg wrote:
>
>> I have four files:
>> c:\djgpp\include\tmp.h contains:
>> #include "tmp2.h"
>> #include "tmp3.h"
>> c:\djgpp\include\tmp2.h is empty
>> c:\djgpp\include\tmp3.h is empty
>> tmp.c contains:
>> #include <tmp.h>
>>
>> If I run
>>
>> gcc -MM tmp.c
>>
>> I get the output
>>
>> tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver \
>> c:/djgpp/include/tmp3.h
>
> If you indeed run "gcc -MM" (without any other switches), GCC should
> have complained about <tmp.h> not found anywhere in the include path.
> So something is missing in your description.
>
> FWIW, GCC 2.95.3 correctly reports the dependencies: if I use -I. -MM
> and <tmp.h>, it doesn't mention any headers except djgpp.ver, and if I
> use -MM alone and change tmp.c to include "tmp.h", it reports all of
> tmp.h, tmp2.h, and tmp3.h. I don't have GCC 3.0.3 installed where I
> type this to test that version.
After posting my response to Sven, I noticed that I hadn't read your post
correctly.
I can reproduce his problems on a Windows XP Pro machine (with gcc 3.03):
C:\DOCUME~1\asu1\LOCALS~1\Temp>gcc -MM tmp.c
tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver
whereas you indicate this sould have complained about not being able to
find <tmp.h>, and
C:\DOCUME~1\asu1\LOCALS~1\Temp>gcc -I. -MM tmp.c
tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver tmp3.h
whereas you mentioned this should only list djgpp.ver as a dependency.
Changing <tmp.h> to "tmp.c" yields the expected behavior.
Sorry I can't shed any light on to this.
Sinan.
- Raw text -