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: Andreas Schwab <schwab at issan dot cs dot uni-dortmund dot de>
- Date: 26 Apr 1999 10:45:21 +0200
- Cc: Richard Henderson <rth at cygnus dot com>, egcs at egcs dot cygnus dot com
- References: <199904232319.TAA22157@blastula.phys.columbia.edu>
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.