For example, if the source file is test.c then it writes to a file named test.d instead. gcc -M does print to stdio. You have to use the -MF [output file name] flag to have it to write to [output file name]. The behavior is different between occ and gcc.
For example, if the source file is
test.c
then it writes to a file namedtest.d
instead.gcc -M
does print tostdio
. You have to use the-MF [output file name]
flag to have it to write to[output file name]
. The behavior is different betweenocc
andgcc
.