r272798 - [Sparc] setjmp and longjmp intrinsic support update to add unit tests and remove accidentally checked-in code.

Chris Dewhurst via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 09:08:13 PDT 2016


Author: lerochris
Date: Wed Jun 15 11:08:13 2016
New Revision: 272798

URL: http://llvm.org/viewvc/llvm-project?rev=272798&view=rev
Log:
[Sparc] setjmp and longjmp intrinsic support update to add unit tests and remove accidentally checked-in code.

Related to revision r272782

Modified:
    cfe/trunk/lib/Basic/Targets.cpp
    cfe/trunk/test/Sema/builtin-longjmp.c

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=272798&r1=272797&r2=272798&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jun 15 11:08:13 2016
@@ -6566,7 +6566,6 @@ public:
   SparcV8TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
       : SparcTargetInfo(Triple, Opts) {
     resetDataLayout("E-m:e-p:32:32-i64:64-f128:64-n32-S64");
-    MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
     // NetBSD / OpenBSD use long (same as llvm default); everyone else uses int.
     switch (getTriple().getOS()) {
     default:

Modified: cfe/trunk/test/Sema/builtin-longjmp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/builtin-longjmp.c?rev=272798&r1=272797&r2=272798&view=diff
==============================================================================
--- cfe/trunk/test/Sema/builtin-longjmp.c (original)
+++ cfe/trunk/test/Sema/builtin-longjmp.c Wed Jun 15 11:08:13 2016
@@ -3,6 +3,7 @@
 // RUN: %clang_cc1 -triple x86_64-windows -emit-llvm < %s| FileCheck %s
 // RUN: %clang_cc1 -triple powerpc-unknown-unknown -emit-llvm < %s| FileCheck %s
 // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm < %s| FileCheck %s
+// RUN: %clang_cc1 -triple sparc-eabi-unknown -emit-llvm < %s | FileCheck %s
 
 // RUN: %clang_cc1 -triple aarch64-unknown-unknown -emit-llvm-only -verify %s
 // RUN: %clang_cc1 -triple mips-unknown-unknown -emit-llvm-only -verify %s




More information about the cfe-commits mailing list