This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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: Aliasing troubles in dwarf_getaranges with gcc 4.4


> libdwP.h:540: error: dereferencing pointer ?readp.44? does break strict-aliasing rules
> dwarf_getaranges.c:152: note: initialized from here
> libdwP.h:519: error: dereferencing pointer ?readp.44? does break strict-aliasing rules
> dwarf_getaranges.c:174: note: initialized from here

Please file a gcc bug about this internal name (".44") appearing in the
error message.  It should show the source-level construct.

> Current git master has the following aliasing issue with gcc 4.4:

Thanks for noticing.  I switched to F-11 and thus gcc-4.4 a few days ago,
but my elfutils build had CFLAGS=-g (no -O2) and didn't produce these
warnings.

I did some constification to clean things up.


Thanks,
Roland

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