🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2666

inconsistent use of SHORT_ENUM_BUG

#2666
From: Peter R. Ham
Date: Mon, 22 May 1989 21:02
27 lines
1301 bytes
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
Technical Details
Message-ID: <HAM.89May22140221@polya.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!polya!ham

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <HAM.89May22140221@polya.Stanford.EDU>
Date: 22 May 89 21:02:22 GMT
Sender: Peter R. Ham <ham@polya.Stanford.EDU>
Distribution: gnu
Organization: Stanford University
Lines: 27