https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113662

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #13)
> So I think the way offset_type is used here is incorrect.
> 
> 
> 
>   boost::interprocess::offset_ptr<T> allocate( std::size_t n ) {
>       return boost::interprocess::offset_ptr<T>(a.allocate(n));
>   }
> 
> That stores the offset from the stack object to the allocated memory.
> That is wrong.
> 
> I am suspecting there is still some oddness going on because we optimize
> exact divide better now.

Rather it is something to do with how IV-OPTS works and such.

By the way I still think the use of offset_ptr is incorrect here.

Reply via email to