bugGNU 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: 

BTW, the bug occurs for post-increment and post-decrement. Reproduce by changing -- to ++ in the test case.

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
    m6811-elf-gcc -Wall -mshort -m68hcs12 -Os -g -o array_bug.elf array_bug.c

Changing SIZE affects the optimization, thus affecting the bug. SIZE=2 and SIZE=4 show problems. SIZE=3 works fine.


Flavio Ribeiro <flavio>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1753:  array_bug.c added by flavio (400B - text/x-csrc - Test case)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


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

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code