This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: fixes for type-punning warnings in GCC 4.1


On Dec 19, 2005, Eli Zaretskii <eliz@gnu.org> wrote:

> Obviously, Alexandre didn't think it was a valuable service, since he
> tried to dupe GCC into not providing it ;-)

It was valuable, but the code warned about turned out to be a harmless
in this particular case, since it would never run anyway.  If it ever
got a chance to run, it would invoke undefined behavior, and possibly
lead to obscure bugs.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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