This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.4 optimisation of if (&ptr == NULL)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]