This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.4 optimisation of if (&ptr == NULL)
- From: Richard Henderson <rth at redhat dot com>
- To: John Neil <jneil at atrove dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 3 Dec 2003 17:51:00 -0800
- Subject: Re: GCC 3.4 optimisation of if (&ptr == NULL)
- References: <000001c3ba06$275dba90$0100a8c0@RICHO>
On Thu, Dec 04, 2003 at 09:30:01AM +0800, John Neil wrote:
> extern void* g_ptr;
If you want &g_ptr to be 0, then g_ptr must be declared weak.
> however in the embedded environment this technique is used to pass
> information from the linker file to the C application..
Ug. There are much better ways to accomplish this.
r~