Subject: Re: gcc "__attribute__", ({}), in the source tree.
To: Perry E. Metzger <perry@piermont.com>
From: None <joerg@britannica.bec.de>
List: tech-toolchain
Date: 12/27/2005 21:37:22
On Tue, Dec 27, 2005 at 02:34:06PM -0500, Perry E. Metzger wrote:
> 
> In discussing a couple of issues with core, the issue of our use of
> the gcc'ism "__attribute__ ((foo))" in our source tree came up.

I've seen the following on my slightly older current:
- format-information: something like FreeBSD's/DragonFly's __printflike
  and __scanflike
- noreturn

That should already be a big deal.

Joerg

> Also, in a bunch of our tree, we use the gcc style ({}) syntax in
> macros, although we could instead use inline functions (and in a few
> cases other techniques) which are portable outside of gcc. Should we
> be attempting to convert these in an effort to minimize gccisms?

I'd often prefer inline functions.

Joerg