This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: making aliases into the middle of a structure
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: making aliases into the middle of a structure
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 22 Apr 1999 15:24:46 -0300
- Cc: egcs at egcs dot cygnus dot com
- References: <199904221813.OAA07239@blastula.phys.columbia.edu>
On Apr 22, 1999, Zack Weinberg <zack@rabi.columbia.edu> wrote:
> extern __typeof(x.b) y __attribute__ ((alias("x.b")));
This can't work. The alias attribute defines an alias to a *symbol*,
not to an arbitrary expression. Since you may have to get quite
platform-specific because of the potential need for leading
underscores, why don't you compute the offset, say, in the configure
script, then #define the appropriate alias string?
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists