stringify macro issue [was: Re: GCC 3.4.x + RTEMS 4.6.2 release.]

Karel Gardas kgardas at objectsecurity.com
Thu Jan 13 22:56:12 UTC 2005


On Thu, 13 Jan 2005, Joel Sherrill <joel at OARcorp.com> wrote:

> Karel Gardas wrote:
> > Hello,
> >
> > I've found the reason why I had these strange issues with gcc3.2.3 and
> > rtems 4.6.2. I've found them since I've also started to have them with
> > rtems trunk and gcc3.4.3. The reason is that we write code like:
> >
> > class Foo
> > {
> > ....
> >     std::string stringify () const;
> > ...
> >
> > while RTEMS seems to define stringify macro:
> >
> >      145
> >      146 #define stringify( _x ) # _x
> >      147
>
> That means RTEMS violates the application namespace.  That
> should be rtems_stringify.

True

> But I don't see it used in RTEMS so it could be considered obsolete
> and purged at this point.

Should I fill PR?

Thanks,
Karel
--
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com




More information about the users mailing list