Option -MD broken with --enable-c-cpplib for C (egcs-1.1.1)
Andris Pavenis
pavenis@lanet.lv
Thu Dec 10 09:36:00 GMT 1998
Hi!
gcc command line option -MD does not work for C (works for C++)
sources if I'm using --enable-c-cpplib when building egcs-1.1.1
Andris
========================================================
Output of 'gcc -v -MD -c hello.c'
Reading specs from c:/djgpp/lib/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
c:/djgpp/lib/gcc-lib/djgpp/egcs-291.60/cc1.exe hello.c -m486 -malign-
jumps=2 -malign-loops=2 -malign-functions=2 -lang-c -isystem
c:/djgpp/bin/include -quiet -dumpbase hello.c -MD hello.d -undef -
D__GNUC__=2 -D__GNUC_MINOR__=91 -Dunix -Di386 -DGO32 -DMSDOS -
DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i386__ -D__GO32__ -
D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -
D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -
version -o E:/cclu4idB.s
cc1.exe: Invalid option `-MD'
GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release) (djgpp) compiled
by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
cc1.exe: hello.d: No such file or directory (ENOENT)
========================================================
Output of 'gcc -v -MD -c hello.cc'
Reading specs from c:/djgpp/lib/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
c:/djgpp/lib/gcc-lib/djgpp/egcs-291.60/cc1plus.exe hello.cc -m486 -malign-
jumps=2 -malign-loops=2 -malign-functions=2 -m486 -malign-jumps=2 -
malign-loops=2 -malign-functions=2 -lang-c++ -isystem c:/djgpp/bin/include -
undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -
D__GNUC_MINOR__=91 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -
DDJGPP_MINOR=2 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -
D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -D__i386 -D__GO32 -
D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -D__EXCEPTIONS -
quiet -dumpbase hello.cc -version -o E:/ccxQ3ouE.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release) (djgpp)
compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
hello.cc: In function `int main()':
hello.cc:5: warning: implicit declaration of function `int print(...)'
c:/djgpp/bin/as.exe -o hello.o E:/ccxQ3ouE.s
More information about the Gcc-bugs
mailing list