Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!polya!ham From: ham@polya.Stanford.EDU (Peter R. Ham) Newsgroups: gnu.gcc.bug Subject: inconsistent use of SHORT_ENUM_BUG Message-ID: Date: 22 May 89 21:02:22 GMT Sender: Peter R. Ham Distribution: gnu Organization: Stanford University Lines: 27 This all reflects version 1.34 of gcc. The C compiler available to me considers enums as shorts, so bitfield of type enum are not allowed. In rtl.h there is a define called "SHORT_ENUM_BUG" which is designed to cope with this problem. In the rtx_def structure definition, this should apply to both of the fields "code" and "mode". In tree.h, this define should apply to the "code" field of the "tree_common" structure definition. Finally, in varasm.c, this define should apply to the "kind" and "mode" fields of the rtx_const structure definition. I don't know if this has been fixed in later versions of gcc. If a decision has been made not to support "SHORT_ENUM_BUG" could someone please let me know. Has anyone else been having similar problems? -- Peter Ham PO Box 3430 (415) 324-4782 MS Computer Science Student Stanford, CA ham@polya.stanford.edu Stanford University 94309