zack's todo list

Florian Weimer Florian.Weimer@RUS.Uni-Stuttgart.DE
Wed Nov 15 01:54:00 GMT 2000


"Zack Weinberg" <zackw@Stanford.EDU> writes:

> Now where is it written that this requires that __func__ be separate
> from other objects?  

The declaration

        static const char __func__[] = "function-name";

specifically requests that a new object is created, in contrast to:

        static const char * const __func__ = "function-name";

> static const char a[] = "blah";
> static const char b[] = "blah";
> 
> - must a and b be different?  The embedded people would surely like
>   them to be merged.

If somebody wants to share the values, one should write:

static const char * const a = "blah";
static const char * const b = "blah";

-- 
Florian Weimer 	                  Florian.Weimer@RUS.Uni-Stuttgart.DE
University of Stuttgart           http://cert.uni-stuttgart.de/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898


More information about the Gcc mailing list