r179310 - Exclude test30 of Sema/return.c for Hexagon since setjmp.h include file

Jyotsna Verma jverma at codeaurora.org
Fri Apr 12 09:20:47 PDT 2013


Thanks Chandler for the suggestion!

 

Attached patch contains the  change. Please let me know if it is good to commit.

 

Also, there are other tests that require system header files and had to be disabled for Hexagon. I will be modifying them in similar fashion.

 

Thanks,

Jyotsna

 

--

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

 

From: Chandler Carruth [mailto:chandlerc at google.com] 
Sent: Thursday, April 11, 2013 8:28 PM
To: Jyotsna Verma
Cc: llvm cfe
Subject: Re: r179310 - Exclude test30 of Sema/return.c for Hexagon since setjmp.h include file

 

On Thu, Apr 11, 2013 at 11:56 AM, Jyotsna Verma <jverma at codeaurora.org> wrote:

Author: jverma
Date: Thu Apr 11 13:56:34 2013
New Revision: 179310

URL: http://llvm.org/viewvc/llvm-project?rev=179310 <http://llvm.org/viewvc/llvm-project?rev=179310&view=rev> &view=rev
Log:
Exclude test30 of Sema/return.c for Hexagon since setjmp.h include file
is unavailable for Hexagon.

 

I feel like the right thing to do is inline a minimal set of declarations to support just *this* test, as the test suite really shouldn't be subjected to the vagaries of the system headers anyways.

 


Modified:
    cfe/trunk/test/Sema/return.c

Modified: cfe/trunk/test/Sema/return.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/return.c?rev=179310 <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/return.c?rev=179310&r1=179309&r2=179310&view=diff> &r1=179309&r2=179310&view=diff
==============================================================================
--- cfe/trunk/test/Sema/return.c (original)
+++ cfe/trunk/test/Sema/return.c Thu Apr 11 13:56:34 2013
@@ -197,6 +197,7 @@ int test29() {
   exit(1);
 }

+#ifndef __hexagon__
 #include <setjmp.h>
 jmp_buf test30_j;
 int test30() {
@@ -209,6 +210,7 @@ int test30() {
     _longjmp(test30_j, 1);
 #endif
 }
+#endif

 typedef void test31_t(int status);
 void test31(test31_t *callback __attribute__((noreturn)));


_______________________________________________
cfe-commits mailing list
cfe-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130412/fb35cd18/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130412/fb35cd18/attachment.txt>


More information about the cfe-commits mailing list