Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 39223
Product:  
Component:  
Status: NEW
Resolution:
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: John Regehr <regehr@cs.utah.edu>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
small.c failure-inducing C program text/x-csrc 2009-02-18 04:58 312 bytes Edit
small.s asm displaying volatile bug application/octet-stream 2009-02-18 04:59 577 bytes Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 39223 depends on: Show dependency tree
Show dependency graph
Bug 39223 blocks:

Additional Comments:





Mark bug as waiting for feedback
Mark bug as suspended




View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2009-02-18 15:19 Opened: 2009-02-18 04:58
This bug is seen using the avr-gcc that is built using the script that comes
with FemtoOS 0.88.

Compile the attached program like this:

  avr-gcc -O -mmcu=atmega128 small.c -S

It can be seen that func_45() unconditionally loads from volatile g_54.  That
is wrong, since in the C code the load is protected by a test.

------- Comment #1 From John Regehr 2009-02-18 04:58 -------
Created an attachment (id=17317) [edit]
failure-inducing C program

------- Comment #2 From John Regehr 2009-02-18 04:59 -------
Created an attachment (id=17318) [edit]
asm displaying volatile bug

------- Comment #3 From Richard Guenther 2009-02-18 10:03 -------
Please fill out GCC version this bug is reported against.

------- Comment #4 From Eric Weddington 2009-02-18 15:19 -------
Fail on 4.3.2 with -O1, success with -O[023s].

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug