Bug 114004
Summary: | gcc -O2 -mcpu=i686 can produce wrong code | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Pancrazio `ezio' de Mauro <pdemauro> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-01-21 11:09:31 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Pancrazio `ezio' de Mauro
2004-01-21 10:51:07 UTC
Created attachment 97143 [details]
Sample C code that does not produce correct results when compiled with -O2 -mcpu=i686
Kernel code is not strict aliasing safe, so you must use -fno-strict-aliasing for all kernel code. Do you see any problems if you recompile with -fno-strict-aliasing? It works perfectly with -fno-strict-aliasing, thank you very much for your quick reply! |