-MMD is not passed into the new CC1 preprocessor. it may pass from SDCC into SDCPP, but the later now require -Wp prefix to pass it into CC1, if i understand the toolchain correctly,
-MMD without -Wp prefix makes SDCPP spoil the C source file, it is trying to preprocess! zeroing the file size (already reported in #3541)
when -MMD is passed into the CC1 by means of -Wp prefix, it work, BUT, the dependency .d files do not land beside the .asm and *.o files, but land into the current directory instead, which look not correct.
version:
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502 TD- 4.2.14 #13854 (MINGW32)
(subscribing)
[#3541] has been fixed in trunk. Tony, could you please revisit and/or provide a small test case? I can't reproduce "-MMD is not passed into CC1" and I do not see a connection to -Wp.
thanks
Related
Bugs:
#3541Last edit: Maarten Brock 2023-03-23
sdcc -MMD <other parameters>was not workingsdcc -Wp-MMD <other parameters>was kind of working with the side effects, described aboveok, i will check that when the build host emit the required version
Thanks. I get
(And similar with "-Wp -MMD".)
This looks good to me.
pending-fixed with [#3541].
Related
Bugs:
#3541Last edit: Maarten Brock 2023-05-04