This is the mail archive of the gcc-bugs@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: gcc 4.0.0 on amd64: problem with -O2?



On May 8, 2005, at 4:17 PM, Harald Dunkel wrote:


Falk Hueffner wrote:

It doesn't know that. The warning is for the *creation* of the type-punned pointer, which is still perfectly fine. Gcc is too stupid to notice whether you actually dereference it.


Yup. There are billions of this constructs in everbodies and his moms source files. By now (< 4.0.0) this did not hurt.

That is not true, this has been an issue for people since 3.0.x (and also
for 2.95, not 2.95.1 though). Just we did not do as much optimization as
before as we do now.


-- Pinski


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