Summary: | Wrong code in gcc-3.3.5 and gcc-3.4.2 (4.0 not checked) | ||
---|---|---|---|
Product: | gcc | Reporter: | Krzysztof Strasburger <strasbur> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | critical | CC: | gcc-bugs |
Priority: | P2 | ||
Version: | 3.3.5 | ||
Target Milestone: | --- | ||
Host: | i386-pc-linux | Target: | i386-pc-linux |
Build: | i386-pc-linux | Known to work: | |
Known to fail: | Last reconfirmed: |
Description
Krzysztof Strasburger
2004-10-26 11:03:35 UTC
Wrong code indeed, but on your side: your C code violates the aliasing rules of the ISO C language. Either fix it or pass -fno-strict-aliasing to the compiler. See the entry of -fstrict-aliasing in the manual for more detailed info. Subject: Re: Wrong code in gcc-3.3.5 and gcc-3.4.2 (4.0 not checked) Thanks a lot! This error occured originally in the f2c-translated FORTRAN code. It works flawlessly with -fno-strict-aliasing. Krzysztof PS who says, there is no support with free software ??? Reopning to ... |