This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: making aliases into the middle of a structure


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]