This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21564] [4.1 Regression] Fatal miscompile with -O1 -fno-strict-aliasing -finline-functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2005 01:19:05 -0000
- Subject: [Bug tree-optimization/21564] [4.1 Regression] Fatal miscompile with -O1 -fno-strict-aliasing -finline-functions
- References: <20050514004500.21564.drab@kepler.fjfi.cvut.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-14 01:19 -------
This is an aliasing issue, -O1 -fno-ivopts -finline-functions works.
DCE thinks the store to gfp->out_samplerate is dead.
Note the code will seg fault right away anyways, you need the following change to main:
Replace:
lame_global_flags *gf ;
With:
lame_global_flags gf1;
lame_global_flags *gf = &gf1;
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
Keywords| |alias
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21564