diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-08-20 17:48:52 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-08-20 17:48:52 +0000 |
commit | b841d1baa1d28267343a861f001a468ce1a96e9b (patch) | |
tree | 7f6d76663d8b2a80731a760c188b89dc3e6cdcc5 /clang/lib/Basic/Targets.cpp | |
parent | e392e6236dc1794e9b97805a36447c8d407209db (diff) | |
download | bcm5719-llvm-b841d1baa1d28267343a861f001a468ce1a96e9b.tar.gz bcm5719-llvm-b841d1baa1d28267343a861f001a468ce1a96e9b.zip |
Issue an error if the user specifies parameters in a function marked as ISR.
llvm-svn: 79544
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 69b930b55ac..49c3ea8c4cb 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1247,9 +1247,14 @@ namespace { Define(Defines, "__pic16"); Define(Defines, "rom", "__attribute__((address_space(1)))"); Define(Defines, "ram", "__attribute__((address_space(0)))"); - Define(Defines, "_section(SectName)", "__attribute__((section(SectName)))"); - Define(Defines, "_address(Addr)","__attribute__((section(\"Address=\"#Addr)))"); + Define(Defines, "_section(SectName)", + "__attribute__((section(SectName)))"); + Define(Defines, "_address(Addr)", + "__attribute__((section(\"Address=\"#Addr)))"); Define(Defines, "_CONFIG(conf)", "asm(\"CONFIG \"#conf)"); + Define(Defines, "_interrupt", + "__attribute__((section(\"interrupt=0x4\"))) \ + __attribute__((used))"); } virtual void getTargetBuiltins(const Builtin::Info *&Records, unsigned &NumRecords) const {} |