From: SourceForge.net <no...@so...> - 2008-11-18 08:59:57
|
Bugs item #2308409, was opened at 2008-11-18 19:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2308409&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: stryd_one (stryd_one) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in recent PIC16 Snapshots Initial Comment: SDCC 2.8.0 does not exhibit this behaviour. Several recent snapshots do. For example, builds 5253 and 5264. A simple example is: This works: void preset_store(unsigned char num) __wparam{ unsigned int addr = ((unsigned char)num); addr <<= 6; MIOS_BANKSTICK_WritePage(addr, current_preset); } This does not: void preset_store(unsigned char num) __wparam{ unsigned int addr = ((unsigned char)num); MIOS_BANKSTICK_WritePage((addr << 6), current_preset); } The latter code compiles, but the linker returns the following error: error: multiple sections using address 0 And then exits. I had seen this same error with other code but had not been able to narrow it down like this. Thanks for your work devs! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2308409&group_id=599 |