Opened 14 years ago

Closed 13 years ago

#78 closed defect (invalid)

Possiibly gcc optimization bug

Reported by: froloff Owned by: bird
Priority: normal Milestone:
Component: gcc Version:
Severity: normal Keywords:


Porting cdrecord, I found very strange effect, when using printf function developed by cdrecord author (Jorg Schiling). Futher analisys brought this result.

I provide a testcase. Please compare results with and without -O2 compiler switch.

Attachments (1) (414 bytes) - added by froloff 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by froloff

Attachment: added

comment:1 Changed 13 years ago by bird

Resolution: invalid
Status: newclosed

This is a breach of the strict aliaing rules. Try add -fno-strict-aliasing or fix the code. (see mailing list)

Note: See TracTickets for help on using tickets.