GNU Development Chain for 68HC11/68HC12 - Bugs: bug #15933, Array addressing,...
You are not allowed to post comments on this tracker with your current authentication level.
bug #15933: Array addressing, post-incrementing bug
Submitter: | Flavio Ribeiro <flavio> | ||
Submitted: | Tue 28 Feb 2006 06:51:47 PM UTC | ||
Category: | gcc | Severity: | 3 - Normal |
Item Group: | sw-bug | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Tue 28 Feb 2006 06:54:35 PM UTC, comment #1: |
Flavio Ribeiro <flavio> |
Tue 28 Feb 2006 06:51:47 PM UTC, original submission:
I found a bug in the 3.1 release regarding an unsigned char optimization. The post-decrement operation inside the if statement (see the attached file) isn't executed, regardless of the comparison's result.
To reproduce it, compile with
Changing SIZE affects the optimization, thus affecting the bug. SIZE=2 and SIZE=4 show problems. SIZE=3 works fine.
Thanks. |
Flavio Ribeiro <flavio> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2006-02-28 | flavio | Attached File | - | ![]() |
Added array_bug.c, #3452 |
BTW, the bug occurs for post-increment and post-decrement. Reproduce by changing -- to ++ in the test case.