This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-M preprocessor option includes #pragma lines


When using the -M option to generate dependency information, #pragma lines
are included in the output.

ppro:~$ g++ -v
Reading specs from /home/petero/gcc/lib/gcc-lib/i686-pc-linux/2.96/specs
gcc version 2.96 20000819 (experimental)
ppro:~$ cat bug3.C
#pragma interface
ppro:~$ g++ -M bug3.C
#pragma interface
bug3.o: bug3.C

Fortunately the # character starts a comment in make, so the dependency
file still works, but I guess it is wrong anyway.

--
Peter Österlund           Email:    peter.osterlund@mailbox.swipnet.se
Sköndalsvägen 35                    f90-pos@nada.kth.se
S-128 66 Sköndal          Homepage: http://home1.swipnet.se/~w-15919
Sweden                    Phone:    +46 8 942647


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]