This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A patch for CONST_DOUBLE
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: A patch for CONST_DOUBLE
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Mon, 16 Mar 1998 19:45:14 -0800
- cc: egcs at cygnus dot com
This is mostly covered by other mail, but just to make it clear, this
patch is wrong.
You can not use outer_function_chain in a nested function, because this will
cause dangling pointers. outer_function_chain is not saved/restored across
nested functions, so if you add object allocated in a nested function to
this variable, then the parent may end up trying to use them after they
have already been deallocated.
It is wrong to look at CONST_DOUBLE_MEM, because CONST_DOUBLE_MEM is an
internal field for the compiler's use, and does not indicate a reference
to a MEM (if it is a MEM).
Jim