This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: minor corrections to gthr-dce.h
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: PATCH: minor corrections to gthr-dce.h
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 16 May 2001 00:32:45 -0400 (EDT)
- Cc: law at redhat dot com, gcc-bugs at gcc dot gnu dot org
> >>>>> "John" == John David Anglin <dave@hiauly1.hia.nrc.ca> writes:
>
> >> > * gthr-dce.h (UNUSED): Attribute unused macro.
>
> You should use the ATTRIBUTE_UNUSED macro that we are using elsewhere
> in GCC.
There are couple of reasons why I didn't. First, it is defined in
ansidecl.h. There are procedures in v3 that include gthr.h. However,
I don't believe they include ansidecl.h. Secondly, ATTRIBUTE_UNUSED
or at least __attribute__ ((unused)) is incompatible with C++. You
get an error message about nested functions. There is a similar but
not identical macro in gthr-single.h.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)