This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug fortran/51267] loop optimization error using LOC function
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 2 May 2012 15:05:03 +0200
- Subject: Re: [Bug fortran/51267] loop optimization error using LOC function
- References: <bug-51267-4@http.gcc.gnu.org/bugzilla/> <bug-51267-4-Uiamz8eQXM@http.gcc.gnu.org/bugzilla/>
I am surprised that this does not happen already at PRE :)
Without volatile attribute there is really nothing that prevents GCC from doing this optimization
and unfortunately I don't think we provide way to prevent it without this big hammer.
We have fpcr register defined for the control word that is accepted in clobber list, but there
is no way to express use of this I think.
Honza