From: SourceForge.net <no...@so...> - 2009-08-29 19:20:14
|
Bugs item #2805333, was opened at 2009-06-12 11:23 Message generated for change (Settings changed) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2805333&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: mcs51(8051) target >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Johan Hovold (johan_mx) Assigned to: Maarten Brock (maartenbrock) Summary: Inverting and casting bit argument to char causes SIGSEGV Initial Comment: Inverting and casting a bit argument to a char causes SDCC to segfault. Note that casting to unsigned char (or signed int) works fine. void f(void) { extern void g(char); extern __bit b; g(!b); /* Causes SDCC 2.9.0 to segfault.. */ } $ sdcc -mmcs51 --model-small -c -o bit_bug.rel bit_bug.c Caught signal 11: SIGSEGV SDCC : mcs51 2.9.0 #5416 (May 7 2009) (UNIX) ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2009-08-29 21:20 Message: Fixed with patch 2837100 in SDCC 2.9.2 #5508. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2805333&group_id=599 |