[cfe-commits] r96173 - /cfe/trunk/lib/Basic/Targets.cpp
Chris Lattner
clattner at apple.com
Sun Feb 14 10:37:41 PST 2010
Hi Sanjiv, this is causing test failures, I'm going to revert it until they're fixed.
-Chris
On Feb 14, 2010, at 10:20 AM, Sanjiv Gupta wrote:
> Author: sgupta
> Date: Sun Feb 14 12:20:18 2010
> New Revision: 96173
>
> URL: http://llvm.org/viewvc/llvm-project?rev=96173&view=rev
> Log:
> renamed pic16 specifiic macros.
>
>
> Modified:
> cfe/trunk/lib/Basic/Targets.cpp
>
> Modified: cfe/trunk/lib/Basic/Targets.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=96173&r1=96172&r2=96173&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Basic/Targets.cpp (original)
> +++ cfe/trunk/lib/Basic/Targets.cpp Sun Feb 14 12:20:18 2010
> @@ -1619,23 +1619,25 @@
> virtual void getTargetDefines(const LangOptions &Opts,
> MacroBuilder &Builder) const {
> Builder.defineMacro("__pic16");
> + Builder.defineMacro("__PIC16");
> Builder.defineMacro("rom", "__attribute__((address_space(1)))");
> Builder.defineMacro("ram", "__attribute__((address_space(0)))");
> - Builder.defineMacro("_section(SectName)",
> + Builder.defineMacro("__section(SectName)",
> "__attribute__((section(SectName)))");
> Builder.defineMacro("near",
> "__attribute__((section(\"Address=NEAR\")))");
> - Builder.defineMacro("_address(Addr)",
> + Builder.defineMacro("__address(Addr)",
> "__attribute__((section(\"Address=\"#Addr)))");
> - Builder.defineMacro("_CONFIG(conf)", "asm(\"CONFIG \"#conf)");
> - Builder.defineMacro("_interrupt",
> + Builder.defineMacro("__config(conf)", "asm(\"CONFIG \"#conf)");
> + Builder.defineMacro("__idlocs(value)", "asm(\"__IDLOCS \"#value)");
> + Builder.defineMacro("interrupt",
> "__attribute__((section(\"interrupt=0x4\"))) \
> __attribute__((used))");
> }
> virtual void getTargetBuiltins(const Builtin::Info *&Records,
> unsigned &NumRecords) const {}
> virtual const char *getVAListDeclaration() const {
> - return "";
> + return "typedef char* __builtin_va_list;";
> }
> virtual const char *getClobbers() const {
> return "";
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list