[RFC][BZ #7233] Do not let tr_break call be optimized away.
Ondřej Bílka
neleai@seznam.cz
Fri Oct 25 16:51:00 GMT 2013
On Fri, Oct 25, 2013 at 03:46:19PM +0530, Siddhesh Poyarekar wrote:
> On Thu, Oct 17, 2013 at 08:09:04PM +0200, OndÅej BÃlka wrote:
> > Hi,
> >
> > In following bug a gcc optimizes tr_break call in tr_freehook. Adding
> > side effect prevents that.
>
> So what is the problem with optimizing the call?
>
> Siddhesh
/* This function is called when the block being alloc'd, realloc'd, or
freed has an address matching the variable "mallwatch". In a debugger,
set "mallwatch" to the address of interest, then put a breakpoint on
tr_break. */
debugger will not stop when it is optimized away.
More information about the Libc-alpha
mailing list