Preliminary mainline patch for __attribute__ ((sentinel))

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Mon Aug 30 03:10:00 GMT 2004


 > [...] for a new attribute I'd be inclined to be strict and at least
 > warn when it is applied to an unprototyped function.  (It might
 > still be useful to keep the attribute after that warning and warn
 > for bad calls to the function.)

Okay, I'll warn when the named argument is missing or the function is
unprototyped.

WRT whether to preserve the attribute in the latter case, I'm going to
ignore the attribute.  Later checks might include ensuring the
sentinel appears in the variadic section rather than among the named
arguments, which we can't do when it's unprototyped.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc-patches mailing list