Opened 20 years ago
Closed 19 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)
by , 20 years ago
| Attachment: | testcase_ticket.zip added |
|---|
comment:1 by , 19 years ago
| 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)