Opened 18 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)
Change History (2)
Changed 18 years ago by
Attachment: | testcase_ticket.zip added |
---|
comment:1 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is a breach of the strict aliaing rules. Try add -fno-strict-aliasing or fix the code. (see mailing list)