This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Attribute questions
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: Attribute questions
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 28 Jun 2001 22:52:06 -0700
- cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
--On Thursday, June 28, 2001 10:58:25 PM -0700 Richard Henderson
<rth@redhat.com> wrote:
> On Thu, Jun 28, 2001 at 09:16:10PM -0700, Mark Mitchell wrote:
>> 1.The manual says that the `unused' attribute applied to functions
>> is not supported by G++ "as definitions without parameters are
>> valid in C++". This seems confused. The `unused' attribute
>> applied to a function means that the function is not used; what,
>> if anything, has this to do with its parameters?
>
> Look at the definition of UNUSED in gthr-single.h. I'd actually
> like this fixed so that code can be more easily shared between
> GNU C and GNU C++.
In principle, all things will be fixed in the new parser.
In practice, this one actually will be because I just did it.
But, this is function parameters; the manual is talking about functions
themselves as far as I can tell.
>
>> 3. The manual contains anti-#pragma rhetoric.
> [...]
>> Can we just remove this bit of editorialization from the macro?
>
> Please.
Good. I'll kill it.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com