This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Support priority argument for constructor/destructor arguments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]