Bug 89009
Summary: | gcc miscompiles code | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | David Howells <dhowells> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 9 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-10-03 21:48:20 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
David Howells
2003-04-16 14:49:27 UTC
Created attachment 91151 [details]
testcase for showing problem
I've spotted the basic problem in my code. The code was, at that point, accessing a local variable that had been initialised to NULL and was not changed between the two points. However, the fact that the first access had the register reference removed (but the second access still had it) was confusing... perhaps a warning should be generated? There has been a proposal for warning about dereferencing NULL. http://gcc.gnu.org/PR16351 Whether it makes it in or not is another question. |