This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Support priority argument for constructor/destructor arguments
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 24 Feb 2007 21:09:40 +0000 (UTC)
- Subject: Re: PATCH: Support priority argument for constructor/destructor arguments
- References: <200702242051.l1OKp6aG009247@sparrowhawk.codesourcery.com>
One case of invalid attribute arguments that should be tested in the tests
for invalid arguments and may need testing for in the code is INTEGER_CSTs
of non-integer type, __attribute__((constructor((void *)0))) for example.
(Some existing attributes may have the same bug of failing to check for
non-integer types. I previously fixed such bugs for some other cases in
<http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01867.html>.)
(Arguments that aren't INTEGER_CSTs at all should also be covered in the
testcases, but I don't think the code itself has any problems with them.)
--
Joseph S. Myers
joseph@codesourcery.com