From: SourceForge.net <no...@so...> - 2005-02-18 22:40:05
|
Bugs item #1144102, was opened at 2005-02-18 22:40 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=1144102&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: optimiser error on conditional operator Initial Comment: char a; unsigned int b; void test(void) { a = ( b & 0x2000) ? 1 : 0 ; } /* command : sdcc -c -mz80 -o bug2.o bug2.c */ /* bug1.c:7: warning: conditional flow changed by optimiser: so said EVELYN the modified DOG */ /* warning: unreachable code */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51 /ds400/hc08 2.4.0 (Feb 23 2004) (MINGW32) */ The assembler output is also incorrect; the assignment is optimised away and a no-op function is produced. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 |
From: SourceForge.net <no...@so...> - 2005-02-18 23:10:10
|
Bugs item #1144102, was opened at 2005-02-18 14:40 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: optimiser error on conditional operator Initial Comment: char a; unsigned int b; void test(void) { a = ( b & 0x2000) ? 1 : 0 ; } /* command : sdcc -c -mz80 -o bug2.o bug2.c */ /* bug1.c:7: warning: conditional flow changed by optimiser: so said EVELYN the modified DOG */ /* warning: unreachable code */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51 /ds400/hc08 2.4.0 (Feb 23 2004) (MINGW32) */ The assembler output is also incorrect; the assignment is optimised away and a no-op function is produced. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-02-18 15:10 Message: Logged In: NO please retry with a more recent version of the compiler, (this error existed for all target platforms on 2.4.0). - is it time for a 2.5.0 release?^) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 |
From: SourceForge.net <no...@so...> - 2005-02-19 14:08:56
|
Bugs item #1144102, was opened at 2005-02-18 23:40 Message generated for change (Settings changed) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 Category: None >Group: fixed >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: optimiser error on conditional operator Initial Comment: char a; unsigned int b; void test(void) { a = ( b & 0x2000) ? 1 : 0 ; } /* command : sdcc -c -mz80 -o bug2.o bug2.c */ /* bug1.c:7: warning: conditional flow changed by optimiser: so said EVELYN the modified DOG */ /* warning: unreachable code */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51 /ds400/hc08 2.4.0 (Feb 23 2004) (MINGW32) */ The assembler output is also incorrect; the assignment is optimised away and a no-op function is produced. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-02-19 00:10 Message: Logged In: NO please retry with a more recent version of the compiler, (this error existed for all target platforms on 2.4.0). - is it time for a 2.5.0 release?^) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 |
From: SourceForge.net <no...@so...> - 2005-02-22 17:31:11
|
Bugs item #1144102, was opened at 2005-02-18 22:40 Message generated for change (Comment added) made by antm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 Category: None Group: fixed Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: optimiser error on conditional operator Initial Comment: char a; unsigned int b; void test(void) { a = ( b & 0x2000) ? 1 : 0 ; } /* command : sdcc -c -mz80 -o bug2.o bug2.c */ /* bug1.c:7: warning: conditional flow changed by optimiser: so said EVELYN the modified DOG */ /* warning: unreachable code */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51 /ds400/hc08 2.4.0 (Feb 23 2004) (MINGW32) */ The assembler output is also incorrect; the assignment is optimised away and a no-op function is produced. ---------------------------------------------------------------------- >Comment By: Ant.M. (antm) Date: 2005-02-22 17:31 Message: Logged In: YES user_id=1119604 Updated SDCC to CVS snapshot 2.4.8 #963 (21 Feb 2005) and confirm this bug is squashed. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-02-18 23:10 Message: Logged In: NO please retry with a more recent version of the compiler, (this error existed for all target platforms on 2.4.0). - is it time for a 2.5.0 release?^) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1144102&group_id=599 |