Bug 229459
Summary: | useless warning using anonymous bitfield | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Roland McGrath <roland> | ||||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||||
Severity: | low | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 5 | CC: | aoliva | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-02-21 14:29:36 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
Roland McGrath
2007-02-21 10:31:39 UTC
Created attachment 148471 [details]
test function to compile
A SRA bug. Tracking this upstream, as it affects upstream 4.1/4.2/4.3 as well. Created attachment 149247 [details] Patch that fixes the bug by silencing the warning It is simple enough to silence the warning. Optimizing the code generated by the compiler when the bitfields are scalarized is much harder, not only in general (http://gcc.gnu.org/PR22156), but also for padding bitfields, considering that padding bits *must* be copied unless the entire byte is a padding byte (6.2.6.1/6 in C99-TC2). |