Testsuite untyped assembly fixes for ptx.
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 10 Nov 2014 16:30:22 +0000 (16:30 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 10 Nov 2014 16:30:22 +0000 (16:30 +0000)
* lib/target-supports.exp
(check_effective_target_untyped_assembly): New function.
* gcc.c-torture/compile/20091215-1.c: Require untyped_assembly.
* gcc.c-torture/compile/920917-1.c: Likewise.
* gcc.c-torture/compile/930120-1.c: Likewise.
* gcc.c-torture/compile/930411-1.c: Likewise.
* gcc.c-torture/compile/930529-1.c: Likewise.
* gcc.c-torture/compile/930623-1.c: Likewise.
* gcc.c-torture/compile/950329-1.c: Likewise.
* gcc.c-torture/compile/calls.c: Likewise.
* gcc.c-torture/compile/pr37258.c: Likewise.
* gcc.c-torture/compile/pr37327.c: Likewise.
* gcc.c-torture/compile/pr38360.c: Likewise.
* gcc.c-torture/compile/pr43635.c: Likewise.
* gcc.c-torture/compile/pr47428.c: Likewise.
* gcc.c-torture/compile/pr47967.c: Likewise.
* gcc.c-torture/compile/pr49145.c: Likewise.
* gcc.c-torture/compile/pr51694.c: Likewise.
* gcc.c-torture/compile/pr53411.c: Likewise.
* gcc.c-torture/execute/20001101.c: Likewise.
* gcc.c-torture/execute/20051012-1.c: Likewise.
* gcc.c-torture/execute/920501-1.c: Likewise.
* gcc.c-torture/execute/921202-1.c: Likewise.
* gcc.c-torture/execute/921208-2.c: Likewise.
* gcc.c-torture/execute/call-trap-1.c: Likewise.
* gcc.c-torture/compile/20010525-1.c: Likewise.
* gcc.c-torture/compile/20021015-2.c: Likewise.
* gcc.c-torture/compile/20031023-1.c: Likewise.
* gcc.c-torture/compile/20031023-2.c: Likewise.
* gcc.c-torture/compile/pr49206.c: Likewise.
* gcc.c-torture/execute/pr47237.c: Likewise.
* gcc.dg/torture/stackalign/builtin-apply-1.c: Likewise.
* gcc.dg/torture/stackalign/builtin-apply-2.c: Likewise.
* gcc.dg/torture/stackalign/builtin-apply-3.c: Likewise.
* gcc.dg/torture/stackalign/builtin-apply-4.c: Likewise.
* gcc.dg/torture/stackalign/builtin-return-1.c: Likewise.
* gcc.dg/builtin-apply1.c: Likewise.
* gcc.dg/builtin-apply2.c: Likewise.
* gcc.dg/builtin-apply3.c: Likewise.
* gcc.dg/builtin-apply4.c: Likewise.
* gcc.dg/pr38338.c: Likewise.
* gcc.dg/torture/pr41993.c: Likewise.
* gcc.c-torture/compile/386.c: Likewise.
* gcc.c-torture/compile/cmpsi386.c: Likewise.
* gcc.c-torture/compile/consec.c: Likewise.
* gcc.c-torture/compile/ex.c: Likewise.
* gcc.c-torture/compile/pass.c: Likewise.
* gcc.c-torture/compile/scal.c: Likewise.
* gcc.c-torture/compile/uuarg.c: Likewise.
* gcc.c-torture/compile/conv_tst.c: Likewise.

From-SVN: r217297

53 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010525-1.c
gcc/testsuite/gcc.c-torture/compile/20021015-2.c
gcc/testsuite/gcc.c-torture/compile/20031023-1.c
gcc/testsuite/gcc.c-torture/compile/20031023-2.c
gcc/testsuite/gcc.c-torture/compile/20031023-3.c
gcc/testsuite/gcc.c-torture/compile/20091215-1.c
gcc/testsuite/gcc.c-torture/compile/386.c
gcc/testsuite/gcc.c-torture/compile/920917-1.c
gcc/testsuite/gcc.c-torture/compile/930120-1.c
gcc/testsuite/gcc.c-torture/compile/930411-1.c
gcc/testsuite/gcc.c-torture/compile/930529-1.c
gcc/testsuite/gcc.c-torture/compile/930623-1.c
gcc/testsuite/gcc.c-torture/compile/950329-1.c
gcc/testsuite/gcc.c-torture/compile/call.c
gcc/testsuite/gcc.c-torture/compile/calls-void.c
gcc/testsuite/gcc.c-torture/compile/calls.c
gcc/testsuite/gcc.c-torture/compile/cmpsi386.c
gcc/testsuite/gcc.c-torture/compile/consec.c
gcc/testsuite/gcc.c-torture/compile/conv_tst.c
gcc/testsuite/gcc.c-torture/compile/ex.c
gcc/testsuite/gcc.c-torture/compile/pass.c
gcc/testsuite/gcc.c-torture/compile/pr37258.c
gcc/testsuite/gcc.c-torture/compile/pr37327.c
gcc/testsuite/gcc.c-torture/compile/pr38360.c
gcc/testsuite/gcc.c-torture/compile/pr43635.c
gcc/testsuite/gcc.c-torture/compile/pr47428.c
gcc/testsuite/gcc.c-torture/compile/pr47967.c
gcc/testsuite/gcc.c-torture/compile/pr49145.c
gcc/testsuite/gcc.c-torture/compile/pr49206.c
gcc/testsuite/gcc.c-torture/compile/pr51694.c
gcc/testsuite/gcc.c-torture/compile/pr53411.c
gcc/testsuite/gcc.c-torture/compile/scal.c
gcc/testsuite/gcc.c-torture/compile/uuarg.c
gcc/testsuite/gcc.c-torture/execute/20001101.c
gcc/testsuite/gcc.c-torture/execute/20051012-1.c
gcc/testsuite/gcc.c-torture/execute/920501-1.c
gcc/testsuite/gcc.c-torture/execute/921202-1.c
gcc/testsuite/gcc.c-torture/execute/921208-2.c
gcc/testsuite/gcc.c-torture/execute/call-trap-1.c
gcc/testsuite/gcc.c-torture/execute/pr47237.c
gcc/testsuite/gcc.dg/builtin-apply1.c
gcc/testsuite/gcc.dg/builtin-apply2.c
gcc/testsuite/gcc.dg/builtin-apply3.c
gcc/testsuite/gcc.dg/builtin-apply4.c
gcc/testsuite/gcc.dg/pr38338.c
gcc/testsuite/gcc.dg/torture/pr41993.c
gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-1.c
gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-2.c
gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-3.c
gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c
gcc/testsuite/gcc.dg/torture/stackalign/builtin-return-1.c
gcc/testsuite/lib/target-supports.exp

index 16919877ba86867e1930a985980c7a1313233ddc..8038759604b8dca4daa0c1d41d48864cad3e9ee0 100644 (file)
@@ -1,5 +1,56 @@
 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
 
+       * lib/target-supports.exp
+       (check_effective_target_untyped_assembly): New function.
+       * gcc.c-torture/compile/20091215-1.c: Require untyped_assembly.
+       * gcc.c-torture/compile/920917-1.c: Likewise.
+       * gcc.c-torture/compile/930120-1.c: Likewise.
+       * gcc.c-torture/compile/930411-1.c: Likewise.
+       * gcc.c-torture/compile/930529-1.c: Likewise.
+       * gcc.c-torture/compile/930623-1.c: Likewise.
+       * gcc.c-torture/compile/950329-1.c: Likewise.
+       * gcc.c-torture/compile/calls.c: Likewise.
+       * gcc.c-torture/compile/pr37258.c: Likewise.
+       * gcc.c-torture/compile/pr37327.c: Likewise.
+       * gcc.c-torture/compile/pr38360.c: Likewise.
+       * gcc.c-torture/compile/pr43635.c: Likewise.
+       * gcc.c-torture/compile/pr47428.c: Likewise.
+       * gcc.c-torture/compile/pr47967.c: Likewise.
+       * gcc.c-torture/compile/pr49145.c: Likewise.
+       * gcc.c-torture/compile/pr51694.c: Likewise.
+       * gcc.c-torture/compile/pr53411.c: Likewise.
+       * gcc.c-torture/execute/20001101.c: Likewise.
+       * gcc.c-torture/execute/20051012-1.c: Likewise.
+       * gcc.c-torture/execute/920501-1.c: Likewise.
+       * gcc.c-torture/execute/921202-1.c: Likewise.
+       * gcc.c-torture/execute/921208-2.c: Likewise.
+       * gcc.c-torture/execute/call-trap-1.c: Likewise.
+       * gcc.c-torture/compile/20010525-1.c: Likewise.
+       * gcc.c-torture/compile/20021015-2.c: Likewise.
+       * gcc.c-torture/compile/20031023-1.c: Likewise.
+       * gcc.c-torture/compile/20031023-2.c: Likewise.
+       * gcc.c-torture/compile/pr49206.c: Likewise.
+       * gcc.c-torture/execute/pr47237.c: Likewise.
+       * gcc.dg/torture/stackalign/builtin-apply-1.c: Likewise.
+       * gcc.dg/torture/stackalign/builtin-apply-2.c: Likewise.
+       * gcc.dg/torture/stackalign/builtin-apply-3.c: Likewise.
+       * gcc.dg/torture/stackalign/builtin-apply-4.c: Likewise.
+       * gcc.dg/torture/stackalign/builtin-return-1.c: Likewise.
+       * gcc.dg/builtin-apply1.c: Likewise.
+       * gcc.dg/builtin-apply2.c: Likewise.
+       * gcc.dg/builtin-apply3.c: Likewise.
+       * gcc.dg/builtin-apply4.c: Likewise.
+       * gcc.dg/pr38338.c: Likewise.
+       * gcc.dg/torture/pr41993.c: Likewise.
+       * gcc.c-torture/compile/386.c: Likewise.
+       * gcc.c-torture/compile/cmpsi386.c: Likewise.
+       * gcc.c-torture/compile/consec.c: Likewise.
+       * gcc.c-torture/compile/ex.c: Likewise.
+       * gcc.c-torture/compile/pass.c: Likewise.
+       * gcc.c-torture/compile/scal.c: Likewise.
+       * gcc.c-torture/compile/uuarg.c: Likewise.
+       * gcc.c-torture/compile/conv_tst.c: Likewise.
+
        * lib/target-supports.exp (check_effective_target_alloca): New function.
        * gcc.c-torture/execute/20010209-1.c: Require alloca.
        * gcc.c-torture/execute/20020314-1.c: Likewise.
index 2e4ae382ab90f3eeac12df695b038eef34fc39de..c020c947826f07880d91ef9b07460d6f54197d5c 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 static int kind_varread(char *str)
 {
   if (0 == memcmp("%_#",               str, 3))  return 2;
index 6b158c5bdc8b1d10ed3958f216a0837b287ca931..bd1a6aa5305c8e1070716a9de56e390a972531a1 100644 (file)
@@ -1,4 +1,5 @@
 /* PR target/8232.  */
+/* { dg-require-effective-target untyped_assembly } */
 
 int f (char *p, char *q, int i)
 {
index 67f8ea9181ada88786a0b046b54676be362505e2..be837762e665e13650cc4a902798bb54d1dd2a6f 100644 (file)
@@ -1,3 +1,5 @@
+/* Declaration of the frame size doesn't work on ptx.  */
+/* { dg-require-effective-target untyped_assembly } */
 #ifndef ASIZE
 # define ASIZE 0x10000000000UL
 #endif
index 663e447157e77acd456b150ec6ad85ec6748c82f..66d66458c85c999085cf41da17b45f1391ba41fb 100644 (file)
@@ -1,2 +1,4 @@
+/* Declaration of the frame size doesn't work on ptx.  */
+/* { dg-require-effective-target untyped_assembly } */
 #define ASIZE 0x1000000000UL
 #include "20031023-1.c"
index f4a16c73c0df8c4a9a2a2d5d0c5460d4e548b289..5859634c34332e21b2717d2368356d68e2a710a7 100644 (file)
@@ -1,2 +1,4 @@
+/* Declaration of the frame size doesn't work on ptx.  */
+/* { dg-require-effective-target untyped_assembly } */
 #define ASIZE 0x100000000UL
 #include "20031023-1.c"
index 7862e2fb03fde9415f624b70c51916a7903a27f6..1df5098fdb655397c4af888ca41c137c48dfe7fd 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 void bar ();
 
 void
index 432cdaddd12d029121f0b6dbc4a24a699c440e2c..81fcea5f0e65689c79d7f8227083d10a546793ff 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 foo (a, p)
      int *p;
 {
index ebe8200d48bfb1a2401dbfa64a7d8e64254ed5b4..139f60e6f5eb417a1666ebcc9a1fe31bf66448c7 100644 (file)
@@ -1,2 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 inline f(x){switch(x){case 6:case 4:case 3:case 1:;}return x;}
 g(){f(sizeof("xxxxxx"));}
index 95ac43c07ed8391fbad972cb2c099bb3cba943fa..a1d8df87c4b7a01d382d6ca3e7049e1fbb8bfed1 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 union {
   short I[2];
   long int L;
index bb03c13fa073b2c8024397752c5ccb097c511458..6dd87eefc7cafc3423af9f3aeaf5abdc4e0ad530 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 int heap;
 
 g(){}
index 70b2cb8f90cab3999b78cd8e8fbc5226eae8d24a..8ad358dff5a942ba7fecd47f3cd468ed888f0f7d 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 struct r
 {
   int d1, d2;
index 4b5b90bd8488a9e9a011b4c6a8a8b4c9edb46308..022ad01804edb3770266f2ffb641a291c813873b 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 g (a, b) {}
 
 f (xx)
index 7c047f5a59c9d4c408fb795b670c04cd02394f9a..63ec6b2812098b24187d62e42c3716f5c07a891e 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 f ()
 {
   int i;
index c8106038371cd17375a27d8808c9a56f17ade5e0..265193d4d6fbab8f106ad499a7213272e3411edb 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires untyped assembly" { ! untyped_assembly } { "-O0" } { "" } } */
+
 int foo () {}
 
 main (a, b)
index a8dacd79704f28b0099e9608963c0826707484fb..eeed4fdfdc1d125867335d2ba1b99de71c455ed8 100644 (file)
@@ -1,4 +1,6 @@
 /* { dg-require-effective-target ptr32plus } */
+/* { dg-require-effective-target untyped_assembly } */
+
 typedef void  (*T)(void);
 f1 ()
 {
index 1241058a0735bdbcb91d5eea267131c4cc1d8791..ca07122a786af7ee1575895ef7105dea80a06bd3 100644 (file)
@@ -1,4 +1,6 @@
 /* { dg-require-effective-target ptr32plus } */
+/* { dg-require-effective-target untyped_assembly } */
+
 typedef void  *(*T)(void);
 f1 ()
 {
index 50b08d7126d653e7b6f8104f4fd0f534ac2d31f4..c98b8626a872f63728aac0eeca85552159a78bec 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 foo (a, p)
      register int a;
      int *p;
index fd76cd2eec43124f778a5508caaf061e0b0e6a1e..01fa25b009b8bc1761fb9d74214c89635437cc46 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 int glob;
 
 conseq (a, b, c, d)
index 513d6a2471e3c0e9d700fa60807b6658b453892c..28be666169081e1660d41bb2855a0bb6560f2c39 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 #define ID_1 2400000000.0
 #define ID_2 1.7
 #define ID_3 -1.7
index f5d90fd2e65b49573b7f6e2dea71d9989aa43714..3753815837fc781bea588d809d7252bdc819f5b1 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target untyped_assembly } */
+
 foo (a, b)
 {
   if ((a & (1 << b)) == 0)
index 6b663828aee0fb897e961eeced4529a8356c3396..4e028393feb6b0c28e11d674362c58c519052d79 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 int
 foo (a, b, c)
 {
index 5091d980bfd909a471594ca1df2d009d3b5e8994..286f2fc4427ae5702417acbdf5a063dedb508742 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 typedef signed char int8_t;
 typedef short int int16_t;
 typedef int int32_t;
index 7041d834ea2dc7b0349b9fc5773bb66bf71aa474..79946b7522de952cda9c427f1dab4bc56f77613f 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 typedef signed char int8_t;
 typedef short int int16_t;
 typedef int int32_t;
index 463218d1156e0b9dd2e86dd9a9935613f0ff5730..4c67b0085ca2331d74b90c84c494d4e4d67cb6e7 100644 (file)
@@ -1,4 +1,5 @@
 /* PR middle-end/38360 */
+/* { dg-require-effective-target untyped_assembly } */
 
 int
 main ()
index 4039fa7a569dcca906ff45ca80e61bf5477c79e4..df826b6f4c0f12964e1500a8f0df10f46ca2fc4f 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 extern void d (void);
 
 void (*foo (void)) (float)
index 0c4ccc9127d2b06de3ae6cfa14df74b0ee705871..3cd7bfdf56e27ac24cf121ff7d2642c560c3055c 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/47428 */
+/* { dg-require-effective-target untyped_assembly } */
 
 struct S
 {
index cc2c213974e220a7e1515d88e999a55b5a869d86..fe1f9c2ef7539c9f5f68575199cac1d5f83598de 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/47967 */
+/* { dg-require-effective-target untyped_assembly } */
 
 extern void abort (void);
 static void bar ();
index 079fc884d0503909e52f1d47ba3fd3f8b577d9b4..b44e1977031f6be2cd3e8b2ab0ce902f06f56587 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 static int
 func1 (int a, int b)
 {
index 1df23c983370b0b654e4246f0e154e15a512e220..7596f6a3106bf5a9bdb355073c74cdf99b0d8f10 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 struct S1
 {
   short f0;
index 579a2434d82b7033477e683674a0ae24d10d9a8c..f5c1a40df861176eac40b03a6d0aff96a033f40d 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 void
 foo (x, fn)
   void (*fn) ();
index e88ecbc4ca298b81fa16b8735d01a4cba7c5118e..5a41502fb2bd9ddb257b1bb968197fb2b8863099 100644 (file)
@@ -1,4 +1,5 @@
 /* PR middle-end/53411 */
+/* { dg-require-effective-target untyped_assembly } */
 
 int a, b, c, d, e, f, g, h;
 void fn1 (void);
index 94e22aa80f5b4969a6f2c935c13cebe31840d975..a2fb3e812257d43117d6a73c6695fdf1781bcd0d 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 int g1, g2;
 
 void
index 8928b3e0768388ad1d6fc82d9cdb8bc5d8044e74..930dd8ab5f61a148e743427b448db303f9b21470 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 foo (a, b, c, d, e, f, g, h, i)
 {
   return foo () + i;
index 930ee32c3ee05e650768f5829687107fd6145eb1..475211e25f9710dc34a8007cd426d1dee74850ec 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 extern void abort(void);
                         
 typedef struct
index f12f42913cc2f86fbf57cfbab118bb1d04a0788b..d43aeda82855816b09f61d4af3ae898a0704585c 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 extern void abort (void);
 
 struct type 
index 6f757cac59c3b4b3c6f02828c4a2a7e528237ebd..a057943ce78d5eea2e8e3db47257e51f8505056c 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 int s[2];
 x(){if(!s[0]){s[1+s[1]]=s[1];return 1;}}
 main(){s[0]=s[1]=0;if(x(0)!=1)abort();exit(0);}
index d14425a50761f207474855bf6b5314058cb038c6..935975dd3ad0743a95e81fed16877fcff1f7cab5 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 #ifndef STACK_SIZE
 #define        VLEN    2055
 #else
index d5edcf97c66b798fc769a2a8949699dffef0a77d..f01b5728ee524bb5114a1ac5d5078bcf0e1b404b 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target untyped_assembly } */
 #define STACK_REQUIREMENT (100000 * 4 + 1024)
 #if defined (STACK_SIZE) && STACK_SIZE < STACK_REQUIREMENT
 main () { exit (0); }
index aa226e745d6e13756f45c81b007314c6fa66df4e..c1aa90d430e4b23da3bfd0ca70a9b68a0a824e32 100644 (file)
@@ -2,6 +2,7 @@
    type does not appear until after the function designator and
    arguments have been evaluated.  PR 38483.  */
 /* Origin: Joseph Myers <joseph@codesourcery.com> */
+/* { dg-require-effective-target untyped_assembly } */
 
 extern void exit (int);
 extern void abort (void);
index 470c8ee204c57d23ea96aec01f1f340a12ecc7f8..08025313389f1182ace4aaced0f531d72b0fcad9 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-xfail-if "can cause stack underflow" { nios2-*-* } "*" "" } */
+/* { dg-require-effective-target untyped_assembly } */
 #define INTEGER_ARG  5
 
 extern void abort(void);
index 38b384e7ccaa762830096bb6868cabfb582aec71..7079ce3a6897400d76e73063a0d26e025b1f9e09 100644 (file)
@@ -1,5 +1,6 @@
 /* PR 11184 */
 /* Origin:  Dara Hazeghi <dhazeghi@yahoo.com> */
+/* { dg-require-effective-target untyped_assembly } */
 
 void *
 objc_msg_sendv (char * arg_frame, void (*foo)())
index 3ae2adc6e076903f43a0febe336c0d6ce8fa3f96..d666fcca23179c57d335f2ff81cee6a590ddca0a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-effective-target untyped_assembly } */
 /* { dg-skip-if "Variadic funcs have all args on stack. Normal funcs have args in registers." { "aarch64*-*-* avr-*-* nds32*-*-*" } { "*" } { "" } } */
 /* { dg-skip-if "Variadic funcs use Base AAPCS.  Normal funcs use VFP variant." { arm*-*-* && arm_hf_eabi } { "*" } { "" } } */
 
index 1335d09022a9d6518301591cb77d3ccbf1f202fe..37c5209b91cb296430e4ed17c5e122cb987fd77f 100644 (file)
@@ -5,6 +5,7 @@
    to the right location by __builtin_apply after the direct call.  */
 
 /* { dg-do run } */
+/* { dg-require-effective-target untyped_assembly } */
 
 
 #define INTEGER_ARG  5
index b548df35d157e1d2bc61f1b27e42f6ea4d13301f..cca9187a1d36620b34d1cf8b2228db20f6bfbfb9 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-options "-O2 -Wmissing-noreturn -fgnu89-inline" } */
 /* { dg-additional-options "-mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 /* { dg-do run } */
+/* { dg-require-effective-target untyped_assembly } */
 
 extern void abort (void);
 
index e8fcc3c45049872d4cd5b445dab82866cae13013..5dfd44349262e3feff12614f1788106edbe98acb 100644 (file)
@@ -1,6 +1,7 @@
 /* PR middle-end/38338 */
 /* { dg-options "-O0" } */
 /* { dg-options "-O0 -fPIC" { target fpic } } */
+/* { dg-require-effective-target untyped_assembly } */
 
 typedef void (*fnp) (void);
 
index 890e365615905ae5fb72a53b5e5f2ea357fe9920..05ba4b1997f17e3da7a91653635649d43dc9701f 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mavx -mvzeroupper" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target untyped_assembly } */
 
 short retframe_short (void *rframe)
 {
index 38b384e7ccaa762830096bb6868cabfb582aec71..7079ce3a6897400d76e73063a0d26e025b1f9e09 100644 (file)
@@ -1,5 +1,6 @@
 /* PR 11184 */
 /* Origin:  Dara Hazeghi <dhazeghi@yahoo.com> */
+/* { dg-require-effective-target untyped_assembly } */
 
 void *
 objc_msg_sendv (char * arg_frame, void (*foo)())
index 8eba13aed6794038ab1a92533c3b246bf4a04b95..ffd865b3717af27906dd9175254755783d64667f 100644 (file)
@@ -11,6 +11,7 @@
         do.  */
 /* { dg-skip-if "Variadic funcs use different argument passing from normal funcs" { arm_hf_eabi || { avr-*-* } } "*" "" } */
 /* { dg-skip-if "Variadic funcs have all args on stack. Normal funcs have args in registers." { nds32*-*-* } "*" "" } */
+/* { dg-require-effective-target untyped_assembly } */
    
 
 #define INTEGER_ARG  5
index 1335d09022a9d6518301591cb77d3ccbf1f202fe..37c5209b91cb296430e4ed17c5e122cb987fd77f 100644 (file)
@@ -5,6 +5,7 @@
    to the right location by __builtin_apply after the direct call.  */
 
 /* { dg-do run } */
+/* { dg-require-effective-target untyped_assembly } */
 
 
 #define INTEGER_ARG  5
index 4bf5c1e62275e81388368a59f78ad43a3a5e40ae..78b10322edc49662c899c010d5c76aa708162de3 100644 (file)
@@ -1,6 +1,7 @@
 /* PR tree-optimization/20076 */
 /* { dg-do run } */
 /* { dg-additional-options "-fgnu89-inline" } */
+/* { dg-require-effective-target untyped_assembly } */
 
 extern void abort (void);
 
index e6213da217e530faf9772d1131fa596ab48d834d..af017532aeb3878ef7ad717a2743661a87a56b7d 100644 (file)
@@ -1,6 +1,7 @@
 /* PR middle-end/11151 */
 /* Originator: Andrew Church <gcczilla@achurch.org> */
 /* { dg-do run } */
+/* { dg-require-effective-target untyped_assembly } */
 
 /* This used to fail on SPARC because the (undefined) return
    value of 'bar' was overwriting that of 'foo'.  */
index b6e2dded68207cfcb9037e8f18f4f36607d8f12f..a395f5ff8c91bd78dbc1224a08e461447dd00dd3 100644 (file)
@@ -599,6 +599,17 @@ proc add_options_for_tls { flags } {
     return $flags
 }
 
+# Return 1 if the assembler does not verify function types against
+# calls, 0 otherwise.  Such verification will typically show up problems
+# with K&R C function declarations.
+
+proc check_effective_target_untyped_assembly {} {
+    if { [istarget nvptx-*-*] } {
+       return 0
+    }
+    return 1
+}
+
 # Return 1 if alloca is supported, 0 otherwise.
 
 proc check_effective_target_alloca {} {