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]

[Bug tree-optimization/21564] [4.1 Regression] Fatal miscompile with -O1 -finline-functions


------- Additional Comments From drab at kepler dot fjfi dot cvut dot cz  2005-05-14 01:56 -------
(In reply to comment #5)
> 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;


Yes, you are absolutely correct. Just a result of too much stripping and 3:00
AM. ;-) But the problem isn't affected by that.


-- 


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


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