Bug 25440

Summary: A packed enum bug.
Product: [Retired] Red Hat Linux Reporter: Red Hat Bugzilla <bugzilla>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: high    
Version: 7.1   
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: 2001-02-01 00:46:05 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 Flags
A testcase. none

Description Red Hat Bugzilla 2001-02-01 00:45:10 UTC
The DAC960 driver uses packed enum. gcc 2.96 doesn't
handle it properly. egcs 1.1.2 is ok.

# gcc packed.c
packed.c:10: warning: width of `RamType' exceeds its type
packed.c:15: warning: width of `ErrorCorrection' exceeds its type
# a.out
4
zsh: 9887 abort      ./a.out

Comment 1 Red Hat Bugzilla 2001-02-01 00:46:02 UTC
Created attachment 8621 [details]
A testcase.

Comment 2 Red Hat Bugzilla 2001-02-06 17:05:39 UTC
This is fixed already since Feb, 2nd and the fix is in 2.96-74.
(but it is still waiting for approval for CVS head).