warning: processor mismatch in "pic16f688.o"
Although it is probably not a problem to compile all
of the PIC specific libraries as a single PIC type, creating them correctly takes no longer and is a big step closer to not needing the --processor-mismatch option.
During the build of sdcc, both the pic14 and pic16 ports pass
correct followed by incorrect -p$(ARCH) options to sdcc when
making the PIC specific libraries.
You can see this by inspecting the log from a command similar to this:
make Q= SILENT=Y -C sdcc 2>&1 | tee build.log
By moving the default options such as
CFLAGS += -mpic14 -p16f$(ARCH)
out of the common Makefiles and into the individual Makefiles we
gain better control and aviod conflicting values.
The attached patch is one way to do this.
It applies to svn r5404. It is long due to the repeats; but is rather simple.
For clarity I attempted to keep the -m and -p options together.