search for: err_attribute_argument_out_of_bound

Displaying 1 result from an estimated 1 matches for "err_attribute_argument_out_of_bound".

2018 May 25
1
MSP430: interrupt vector number out of bounds error in v6/trunk (with patch)
...0_VECTOR))) void ISR(void) { } error: 'interrupt' attribute parameter 48 is out of bounds This is due to the check in tools/clang/lib/Sema/SemaDeclAttr.cpp:5104 unsigned Num = NumParams.getLimitedValue(255); if ((Num & 1) || Num > 30) { S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds) << AL.getName() << (int)NumParams.getSExtValue() << NumParamsExpr->getSourceRange(); return; } Also, the __isr_ symbol is emitted with the vector number divided by 2. // Step 3: Emit ISR vector alias. unsigned Num = attr->getNu...