From: SourceForge.net <no...@so...> - 2010-07-31 06:26:00
|
Bugs item #3037423, was opened at 2010-07-30 23:26 Message generated for change (Tracker Item Submitted) made by hawk777 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3037423&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pic16 target Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christopher Head (hawk777) Assigned to: Nobody/Anonymous (nobody) Summary: "unused" (but not really) arrays dropped Initial Comment: If a variable is: - Of array type, - Given an absolute location with __at, and - Not referenced in the file in which it is defined, then the variable is dropped altogether, which is wrong in the case where the variable is referenced from another file. Commands and output: $ sdcc -mpic16 -p18f4550 -c a.c $ sdcc -mpic16 -p18f4550 -c b.c $ sdcc -mpic16 -p18f4550 -o test.hex a.o b.o message: using default linker script "/usr/share/gputils/lkr/18f4550.lkr" error: missing definition for symbol "_foo", required by "a.o" $ sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.8.0 #5117 (Feb 21 2010) (UNIX) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3037423&group_id=599 |