authorNick Clifton <nickc@cygnus.com>
Wed, 19 Aug 1998 16:31:30 +0000 (10:31 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 Aug 1998 16:31:30 +0000 (10:31 -0600)
From Nick Clifton
        * execute/ieee/930529-1.c (main): Check to see if __thumb__ is
        defined, and test for ARM style doubles if so.
        * execute/comp-goto-1.c (main): Make main() return an int.

From-SVN: r21860

gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c
gcc/testsuite/gcc.c-torture/execute/ieee/930529-1.c

index 04c7503115d5a9027c2c3f34b9ed7066f10fa64a..f9f6c126df308a8d271f4d0299ea51e30bfe8ec1 100644 (file)
@@ -123,7 +123,7 @@ insn_t program[2 + 1];
 
 void *malloc ();
 
-void
+int
 main ()
 {
   environment_t env;
index 0b5eda4ac9a68701e4701ff613a93e1615254eff..b96a3c064232552a48e8c088890b5928373d1716 100644 (file)
@@ -15,7 +15,7 @@ main ()
       if (d.c[7] == 0x92 && d.c[6] == 0x24 && d.c[5] == 0x49 && d.c[4] == 0x92
          && d.c[3] == 0x24 && d.c[2] == 0x49 && d.c[1] == 0xc2 && d.c[0] == 0x3f)
        exit (0);
-#ifdef __arm__
+#if defined __arm__ || defined __thumb__
       if (d.c[4] == 0x92 && d.c[5] == 0x24 && d.c[6] == 0x49 && d.c[7] == 0x92
          && d.c[0] == 0x24 && d.c[1] == 0x49 && d.c[2] == 0xc2 && d.c[3] == 0x3f)
        exit (0);