Article View: gnu.gcc.help
Article #46505Help: Which field in the tree node is used for ACTUAL alignment
From: Catherine Moore
Date: Thu, 10 Nov 1994 21:10
Date: Thu, 10 Nov 1994 21:10
20 lines
1345 bytes
1345 bytes
Does anyone know which field in the tree node is used for actual alignment?
I am particularly interested in a scalar field in a record which has a
requested halfword alignment but has been positioned on a 32 bit boundary.
For a simplistic example:
struct {
int x __attribute__ ((packed align(2)));
} s1;
How can I tell if x will be position on a halfword boundary or a word boundary?
In addition, I would like to be able to tell prior to rtl generation. If it is
important, I am compiling for solaris2.3.
Thanks in advance.
-----
Catherine L. Moore
Netrix Corporation
13595 Dulles Technology Drive clm@netrix.com
Herndon, VA. 22071
Technical Details
Message-ID:
<Cz2LH8.Lxu@netrix.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!gatech!howland.reston.ans.net!cs.utexas.edu!uunet!psinntp!netrixgw.netrix.com!rocky!clmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,178a9dba574f8b6d,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-10 13:10:19 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!gatech!howland.reston.ans.net!cs.utexas.edu!uunet!psinntp!netrixgw.netrix.com!rocky!clm From: clm@rocky.netrix.com (Catherine Moore) Subject: Help: Which field in the tree node is used for ACTUAL alignment Message-ID: <Cz2LH8.Lxu@netrix.com> Sender: clm@rocky (Catherine Moore) Organization: Netrix Corporation Date: Thu, 10 Nov 1994 21:10:19 GMT Lines: 21