Opened 13 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:
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 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by froloff

comment:1 Changed 13 years ago by bird

  • Resolution set to invalid
  • Status changed from new to closed

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.