Bug 65086
Summary: | ov511.c from kernel sources trips gcc | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michal Jaegermann <michal> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.3 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | alpha | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-10-02 20:16:14 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
Michal Jaegermann
2002-05-17 06:44:50 UTC
Please provide preprocessed testcase. Attached. With a preprocessed file the following script will cause exception, or not, depending on OPT settings: OPT=-O2 cc -Wall -Wstrict-prototypes \ -Wno-trigraphs $OPT -fomit-frame-pointer -fno-strict-aliasing \ -fno-common -Wno-unused -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 \ -c ov511.expanded.c Created attachment 57747 [details]
preprocessed file from Linux sources which bombs gcc on Alpha
I am clearly not the first person bitten by this bug. See, for example, kernel Makefiles in 7.2 distribution for Alpha where source rpm contains patches to compile ov511.c with -O3 and where comments note that this particular file will compile with any level of optimization but -O2 due to register assignments problems (bryce should know more on the subject). That comment is indeed correct for a case of a "generic" kernel. If you will try platform specific kernels where one may get '-mcpu=ev67' (example and you will get that for "Nautilus") then this bug resurfaces with -O3 and higher. Setting EXTRA_FLAGS to '-O3 -mcpu=ev4' looks to be "safe". Appears to work with gcc 3.3.4. |