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

Submitted by:  Flavio Ribeiro <flavio>
Submitted on:  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.

Thanks.

Flavio Ribeiro <flavio>

 

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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

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.3