Opened 19 years ago

Closed 18 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:
Cc:

Description

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)

testcase_ticket.zip (414 bytes ) - added by froloff 19 years ago.

Download all attachments as: .zip

Change History (2)

by froloff, 19 years ago

Attachment: testcase_ticket.zip added

comment:1 by bird, 18 years ago

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.