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


Zack Weinberg <zack@rabi.columbia.edu> writes:

|> On Fri, 23 Apr 1999 15:54:17 -0700, Richard Henderson wrote:
|> >On Fri, Apr 23, 1999 at 01:40:34PM -0400, Zack Weinberg wrote:
|> >> int common;
|> >> extern int alias __attribute__ ((alias("common")));
|> >> 
|> >> `alias' will not be defined in the object file.  The assembly dump
|> >> looks correct to me.
|> >
|> >This is not a bug.  This is impossible to represent 
|> >in the object file.  I believe SOM can do it if you
|> >feel like hurting yourself...  ;-)
|> 
|> I didn't know that.  It'd be nice if the assembler would complain
|> instead of silently discarding the symbol.

Compile with -fno-common.  Common symbols are evil anyway.

Andreas.


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