While compiling binutils-2.17, i get the error "dereferencing type-punned pointer will break strict-aliasing rules"
Mayank Kumar
mayank@microsoft.com
Tue Jun 19 12:10:00 GMT 2007
More information about the Binutils mailing list
Tue Jun 19 12:10:00 GMT 2007
- Previous message (by thread): While compiling binutils-2.17, i get the error "dereferencing type-punned pointer will break strict-aliasing rules"
- Next message (by thread): possible problems with gprof clocktick resolution when analyzing the program/library time ratio using gprof
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ys it did work Thanks Mayank -----Original Message----- From: binutils-owner@sourceware.org [mailto:binutils-owner@sourceware.org] On Behalf Of vamsi krishna Sent: Tuesday, June 19, 2007 11:28 AM To: Mayank Kumar Cc: binutils@sources.redhat.com Subject: Re: While compiling binutils-2.17, i get the error "dereferencing type-punned pointer will break strict-aliasing rules" Hi Mayank, Did you try (struct bfd_link_hash_entry **)( (void *)&h) ? Thank you, Vamsi On 6/7/07, Mayank Kumar <mayank@microsoft.com> wrote: > if (! (bfd_coff_link_add_one_symbol > (info, dynobj, > &LOADER_SYM[bfd_get_symbol_leading_char(dynobj)=='_'?0:1], > BSF_GLOBAL, s, > (bfd_vma) 0, (const char *) NULL, > FALSE, FALSE, > (struct bfd_link_hash_entry **) &h)))------------------------>The error points to this line in all places. > > > The problem is that variable h is of type struct coff_link_hash_entry *, whereas the function pointer expects a variable of type struct bfd_link_hash_entry *. > > Does anybody know how to fix the above error. > > Thanks > Mayank > > -- Sincerely, Vamsi kundeti. ===== "I want to change the world but I don't have its source code" =====
- Previous message (by thread): While compiling binutils-2.17, i get the error "dereferencing type-punned pointer will break strict-aliasing rules"
- Next message (by thread): possible problems with gprof clocktick resolution when analyzing the program/library time ratio using gprof
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list