[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-16 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5388 + + if (hasFunctionProto(D) && getFunctionOrMethodNumParams(D) != 0) { +S.Diag(D->getLocation(), diag::warn_msp430_interrupt_attribute) aaron.ballman wrote: > What should happen if the f

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5388 + + if (hasFunctionProto(D) && getFunctionOrMethodNumParams(D) != 0) { +S.Diag(D->getLocation(), diag::warn_msp430_interrupt_attribute) What should happen if the function does no

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-16 Thread Anton Korobeynikov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL351344: [MSP430] Improve support of 'interrupt' attribute (authored by asl, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-15 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb updated this revision to Diff 181866. krisb added a comment. Addressed feedback. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D56663/new/ https://reviews.llvm.org/D56663 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/CodeGen/TargetInfo.cpp lib

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:277-280 +def warn_msp430_interrupt_attribute : Warning< + "MSP430 'interrupt' attribute only applies to functions that have " + "%select{no parameters|a 'void' return type}0">, + InG

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-15 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:277-280 +def warn_msp430_interrupt_attribute : Warning< + "MSP430 'interrupt' attribute only applies to functions that have " + "%select{no parameters|a 'void' return type}0">, + InGroup; --

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:277-280 +def warn_msp430_interrupt_attribute : Warning< + "MSP430 'interrupt' attribute only applies to functions that have " + "%select{no parameters|a 'void' return type}0">, + InG

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-14 Thread George Rimar via Phabricator via cfe-commits
grimar added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5381 + // MSP430 'interrupt' attribute is applied to + // a function with no parameters and void return type + if (!isFunctionOrMethod(D)) { nit: code comments usually have a dot `.` at the en

[PATCH] D56663: [MSP430] Improve support of 'interrupt' attribute

2019-01-14 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb created this revision. Herald added a subscriber: cfe-commits. krisb edited the summary of this revision. krisb added a reviewer: asl. krisb edited the summary of this revision. - Accept as an argument constants in range 0..63 (aligned with TI headers and linker scripts provided with TI GCC