[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2021-05-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|UNCONFIRMED |RESOLVED

--- Comment #8 from Andrew Pinski  ---
(In reply to Richard Biener from comment #6)
> It means that the C frontend did not properly merge the _rand_ctx types.

And -combine support was removed as we have -flto now.
So closing as won't fix.

(In reply to Michael Veksler from comment #7)
> Created attachment 20340 [details]
> testcase: A simple set::iterator wrapper produces the same warning

This is a different issue and should be filed seperately if it still happens
with a more recent GCC.

[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-08 Thread veksler at il dot ibm dot com


--- Comment #7 from veksler at il dot ibm dot com  2010-04-08 19:29 ---
Created an attachment (id=20340)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20340action=view)
testcase: A simple setint::iterator wrapper produces the same warning

This c++ file gives a similar warning when compiled with -O2 -Wall
=  g++ -Wall -O2 t.cpp
t.cpp: In function 'int main()':
t.cpp:15: warning: dereferencing pointer 'anonymous' does break
strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.3/../../../../include/c++/4.4.3/bits/stl_tree.h:250:
note: initialized from here
t.cpp:15: warning: dereferencing pointer 'anonymous' does break
strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.3/../../../../include/c++/4.4.3/bits/stl_tree.h:250:
note: initialized from here


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-02 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2010-04-02 11:59 ---
It means that the C frontend did not properly merge the _rand_ctx types.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-01 Thread josh at joshtriplett dot org


--- Comment #1 from josh at joshtriplett dot org  2010-04-02 02:02 ---
Created an attachment (id=20282)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20282action=view)
First preprocessed file to reproduce the bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-01 Thread josh at joshtriplett dot org


--- Comment #2 from josh at joshtriplett dot org  2010-04-02 02:02 ---
Created an attachment (id=20283)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20283action=view)
Second preprocessed file to reproduce the bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-01 Thread josh at joshtriplett dot org


--- Comment #3 from josh at joshtriplett dot org  2010-04-02 02:03 ---
Created an attachment (id=20284)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20284action=view)
First original source file.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-01 Thread josh at joshtriplett dot org


--- Comment #4 from josh at joshtriplett dot org  2010-04-02 02:03 ---
Created an attachment (id=20285)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20285action=view)
Second original source file, for reference.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624



[Bug c/43624] Bad code generation: introduces strict aliasing warnings and references to uninitialized memory

2010-04-01 Thread josh at joshtriplett dot org


--- Comment #5 from josh at joshtriplett dot org  2010-04-02 02:03 ---
Created an attachment (id=20286)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20286action=view)
Original header file, for reference.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43624