This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Strict aliasing and pointers to functions


Perry Smith writes:
 > On Nov 26, 2006, at 6:41 AM, Andrew Haley wrote:
 > 
 > > union
 > > {
 > >   void *barf;
 > >   void (*fptr) (void);
 > > } bilge;
 > >
 > >   bilge.barf = dlsym (NULL, "dummy");
 > >   funcs.dummy = bilge.fptr;
 > 
 > I thought with the new 4.2 compiler, even unions that did not really  
 > solve aliasing problems.

Why did you think this?

Andrew.


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